Configuring custom handlers
This recipe explains how to configure different logging handlers in the Oracle SOA Suite. Although many of the logging handlers already exist, occasionally we may need some special functionality, such as the ability to log into databases or logging via web services. The number of log handler classes in the Oracle SOA Suite is quite limited. Actually, if you check the logging.xml
file, you'll only find two types: oracle.core.ojdl.weblogic.DomainLogHandler
and oracle.core.ojdl.logging.ODLHandlerFactory
. For this recipe, we will define a custom handler and use it in our configuration. The custom handler will enable each instance of the BPEL process to log into its own logfile.
How to do it…
The following steps describe the actions required to create and configure a custom log handler:
Start by creating an empty Java project in JDeveloper and name it LoggingHandler.
In the project, create a Java class (
CustomLogger.java
) in thelogging
package as shown in the following...