Monday, July 25, 2011

How to Set the Trace Level of Oracle JCA Adapters

To set the trace level by using the Fusion Middleware Control Console:


1. Navigate to http://servername:portnumber/em.

The Fusion Middleware Control Console home page is displayed.

2. Right-click soa-infra from the SOA Folder in the Navigator in the left pane.

The console displays a menu.

Select Logs, and the Log Configuration, as shown in Figure





3.Locate oracle.soa.adapter in the Logger Name list, and change the log level in the

Oracle Diagnostic Logging Level (Java Level) field. In this example, select Trace:32

(FINEST) from the list, as shown in Figure




 

You can view the logs for Oracle JCA Adapters as follows:

■ Oracle JCA Adapters and Oracle Adapter for Oracle Applications: These adapters

implement the LogManager interface of the JCA Binding Component, which

redirects log files in the Oracle Diagnostic Logging (ODL) format. For both

outbound and inbound interactions, the log files are redirected to the

soa-diagnostic.log file.The log files for the Oracle SOA Suite that is deployed to the server-soa

managed server are located in:MW_HOME/user_projects/domains/domain_

name/servers/server-soa/logs/soa-diagnostic.log


■ Packaged-application adapters: These adapters do not implement the

LogManager interface because it is not part of the J2CA 1.5 standard. Therefore,

for system components the log outputs are redirected to

ORACLE_INSTANCE\diagnostics\logs\component_type\component_

name. For outbound interactions, the logs are directed to the same location. On the

other hand, for inbound interactions, logs are redirected to

soa-diagnostic.log.