Wednesday, September 10, 2008

ESB Debugging

This blog of mine will focus on how to enable debugging for ESB. Here I am providing a step-by-step procedure to enable debugging. By doing this you can diagonose and troubleshoot your ESB related issue in much better way.

STEPS:

1. Login to SOA Enterprise Manager.
2. Click on the appropriate container name(HOME/OC4J_SOA).
3. Click on Administration link.
4. Click on Logger Configuration icon.
5. In the Search field type ESB and press 'enter' or 'Go' button.
6. The search result will give you the list of services related to ESB.
7. Go through the list, choose and set the appropriate service to FINEST.
8. Restart the container.

Thats it. You are done with the configuring ESB debugging.

I am also providing the list of log files which you need to see/refer at the time of any issues, for troubleshooting ESB.

LIST OF LOG LOCATIONS:

1. SOA_HOME/opmn/logs/opmn.log
2. SOA_HOME/j2ee/OC4J_SOA/log/OC4J_SOA_SOA_GROUP/oc4j/log.xml
3. SOA_HOME/opmn/logs/SOA_GROUP~OC4J_SOA~SOA_GROUP~1.log
4. SOA_HOME/j2ee/OC4J_SOA/application-deployments/esb-rt/OC4J_SOA_SOA_GROUP/application.log
5. SOA_HOME/j2ee/OC4J_SOA/application-deployments/esb-dt/OC4J_SOA_SOA_GROUP/application.log


Keep Learning with me....Happy Learnings...

4 comments:

David Gaskell said...

Abhishek,

Great Post providing useful information into debugging ESB. However you mention looking through te services and setting the appropriate level to FINEST. WHich services are best set to this Level as there are many services. Do you have any further recommendations?

Regards Dave

Abhishek Saurabh said...

Enabling the services for ESB depends upon your requirement. The point shown in the blog is recommended for general cases, but suppose you want fine logging in case of Database then you can set 'oracle.tip.esb.model.repository.database.sql' to finest. If you want finer log for inAdapter and outAdapter, you can use 'oracle.tip.esb.server.service.impl.inadapter' and 'oracle.tip.esb.server.service.impl.outadapter' and set these to finest.

Anonymous said...

Hey

I am new to ESB and I have a question about file names that ESB picks up. Can the file names have spaces in them?

Thank you in advance

Abhishek Saurabh said...

Hi,

Project file name should not contain spaces..If you want to seperate two words, use underscore.

Cheers,
Abhi...