Friday, February 19, 2010

Configuring logger for ESB

In order to get details about the esb process as where exaclty the errors are occuring we need to set the logger parameters for the esb.Depending upon the container where you have deployed your esb_dt and esb_rt you need to set the parameters.

So in order to configure the loggers for esb.

log in to em console
http://host:port/em

now choose the container(oc4j_soa)

choose the application tab and then choose the logger configuration there.

Expand the Root Logger, then expand oracle This will display the logger classes and the Log Level settings for ESB.

Change them to fine,by default it is null

These are the loggger parameters you need to change.Please check the oracle documentation for more details about these parameters

oracle.tip.esb.common.control
oracle.tip.esb.common.system
oracle.tip.esb.configuration
oracle.tip.esb.configuration.servlet
oracle.tip.esb.configuration.util
oracle.tip.esb.configuration.wsilbrowser
oracle.tip.esb.console
oracle.tip.esb.dvm.configuration.servlet
oracle.tip.esb.model.repository.database.sql
oracle.tip.esb.monitor.agent
oracle.tip.esb.monitor.manager
oracle.tip.esb.monitor.manager.database
oracle.tip.esb.server.bootstrap
oracle.tip.esb.server.bootstrap.protocol.esb
oracle.tip.esb.server.bootstrap.slide
oracle.tip.esb.server.common
oracle.tip.esb.server.common.cache
oracle.tip.esb.server.common.error
oracle.tip.esb.server.common.wsif
oracle.tip.esb.server.dispatch
oracle.tip.esb.server.dispatch.agent
oracle.tip.esb.server.headers
oracle.tip.esb.server.service
oracle.tip.esb.server.service.impl.bpel
oracle.tip.esb.server.service.impl.inadapter
oracle.tip.esb.server.service.impl.outadapter
oracle.tip.esb.server.service.impl.soap
oracle.tip.esb.utils
oracle.tip.esb.wsif

One you will set these logging levels to fine you can find the logs to following location.

SOA_HOME\j2ee\OC4J_SOA\application-deployments\esb-rt\OC4J_SOA_SOA_GROUP_1\applicatio.log

SOA_HOME\j2ee\OC4J_SOA\log\OC4J_SOA_SOA_GROUP_1\oc4j\log.xml

if you have separate container for ESBDT as in my case you can check in

SOA_HOME\j2ee\OC4J_ESBDT\log\OC4J_ESBDT_ESBDT_GROUP_1\oc4j\log.xml


If esb is not logging at all any messages then it means you have did some changes in


SOA_HOME/j2ee/container for ESB/config/j2ee-logging.xml

Its format should not be changed.Copy the j2ee-logging.xml file from another istallation and verify the format of the file.

No comments: