The parameter you want to change is the maximum timeout for your JTA transaction.
If you use Atomikos (which, in my opinion, most people use Tomcat), you can set this through the com.atomikos.icatch.max_timeout property or through the com.atomikos.icatch.default_jta_timeout property. This property can be set either using the JVM command-line option or through Spring Integration (described here ).
More information on configuration properties (JTAs) for Atomikos can be found here .
If you are using Bitronix, you can add the bitronix-default-config.properties file to your class path and then add the line bitronix.tm.timer.defaultTransactionTimeout=<value> to this file. See here for more information.
Marco source share