Log Unencrypted SoapFault Messages in Apache CXF

This post shows how to log unencrypted SoapFault messages from Apache CXF  in client applications. These applications use WS-Security for encryption and decryption. Note that this write-up assumes the reader

How to update User Country and Language in SAP NetWeaver Portal

SAP NetWeaver Portal users can be created from various sources. One is LDAP. Normally, details from LDAP are never comprehensive. Other is user-supplied inputs. Users register and provide details like country and language. This article demonstrates how to update user country and language in SAP NetWeaver Portal. This is useful when creating users from LDAP that do not provide country and language information.

How to Delete Files in Java without using third-party libraries

This post shows how to delete files in Java. Our codes will not use any third-party library to accomplish the task. Java Requirements We used the following items for this

Micronaut OAuth2 Keycloak Example That Works

This post shows how to use Micronaut applications that use OAuth2 with Keycloak in a Microservice context. Furthermore, it uses two Micronaut applications. The first application allows users (or programs)

How to use Quartz in a simple Java application

Some applications need some sort of background processes that support some aspect of a business process. This article demonstrates how to use Quartz in a simple Java application.

How to List a Specific number of Random Rows in MySQL

Let’s say you have a list of 10 items you want to display but these items are randomly chosen items. In MySQL, you use the rand() function in the ORDER BY clause. This article demonstrates how to list a specific number of random rows my MySQL.

How to use P6Spy in a simple JDBC Application

This article demonstrates how to use P6Spy in a simple JDBC application Software Environment Windows 7 Professional SP1 Eclipse – Kepler Release Java 1.7 (1.7.0_67 – Windows x86) MySQL 5.6.16

How to use Hibernate with simple JDBC application

This article demonstrates how to use Hibernate 4.3.x with MySQL 5.6.16 in Java using JDBC.

How to configure Log4j to log to console

Okay, you wrote a lot of Log4j debug statements all over your codebase but do not want them to appear in QA and/or Production environment. How to do that? You need to configure Log4j by modifying log4j.xml. You could also use log4j.properties in place of log4j.xml but some advanced settings can only be set using the latter. Might as well use something that offers greater benefits.

iReport 2.0.0 Page Number and Page Count

This article demonstrates how to create a jasper report that displays page number and page count, e.g., 1/10. Software Environment Windows 7 Professional SP1 Eclipse – Kepler Release Java 1.7