Monday, March 08, 2010

Increase time out in ESB

While trying to deploy the esb services you are getting time out exception

You will be getting following exception in your log.xml file

An exception occurred during transaction completion: ; nested exception is:
javax.transaction.RollbackException: Timed out

In order to overcome this issue,Increase the time out for esb

GO to SOA_HOME\integration\esb\config\esb_config.ini

there you will find two properties

# JTA
xa_timeout=60

# JMS receive timeout
jms_receive_timeout=30

These are the default values in second for the JTA and JMS receive time out.

Increase the value as per your requirement save the changes and restart the esb server to implement these changes.

There is no proper documentation or guiding rules as what should be the increased value of time out ,you have to do some hit and trial method to set it to an appropriate value to overcome timeout issue and get optimal performance.

Again during the import of esb system you may get some error like


java.io.IOException: oracle.tip.esb.console.exception.ConsoleTransactionException: An unhandled
exception has been thrown in the ESB system. The exception reported is:
"javax.transaction.RollbackException: Timed out at
com.evermind.server.ApplicationServerTransaction.checkForRollbackOnlyWhileInCommit(ApplicationServer
Transaction.java:598)


to overcome this issue you also need to increase the time out at server level

Go to SOA_HOME/j2ee/home/config/transaction-manager.xml file and increase the transaction-timeout.



Go to SOA_HOME/integration/esb/config/esb_config.ini file and increase xa_timeout

Restart the ESB Server.

No comments: