In tomee.xml: <TransactionManager id="Default Transaction Manager" type="javax.transaction.TransactionManager"> defaultTransactionTimeoutSeconds = 20 minutes </TransactionManager>
That causes tomee to fail to boot. Any ideas? On 3 May 2013 17:23, Romain Manni-Bucau <rmannibu...@gmail.com> wrote: > "Default Transaction Manager" is the default i think > > *Romain Manni-Bucau* > *Twitter: @rmannibucau <https://twitter.com/rmannibucau>* > *Blog: **http://rmannibucau.wordpress.com/*< > http://rmannibucau.wordpress.com/> > *LinkedIn: **http://fr.linkedin.com/in/rmannibucau* > *Github: https://github.com/rmannibucau* > > > > 2013/5/3 James Green <james.mk.gr...@gmail.com> > > > Is there an id value that must be set? > > > > Just setting a TransactionManager with a single line for timeout value > > causes TomEE to error on boot saying the id is invalid. > > > > > > > > On 2 May 2013 12:29, Romain Manni-Bucau <rmannibu...@gmail.com> wrote: > > > > > if you want to update it completely you have the whole config in this > > > thread: > > > > > > > > > http://grokbase.com/t/openejb/users/12agd0wmmm/transaction-has-timed-out-how-to-set-the-server-timeout > > > > > > *Romain Manni-Bucau* > > > *Twitter: @rmannibucau <https://twitter.com/rmannibucau>* > > > *Blog: **http://rmannibucau.wordpress.com/*< > > > http://rmannibucau.wordpress.com/> > > > *LinkedIn: **http://fr.linkedin.com/in/rmannibucau* > > > *Github: https://github.com/rmannibucau* > > > > > > > > > > > > 2013/5/2 James Green <james.mk.gr...@gmail.com> > > > > > > > Just submitted a documentation update to include this. > > > > > > > > > > > > On 2 May 2013 12:16, Romain Manni-Bucau <rmannibu...@gmail.com> > wrote: > > > > > > > > > Hi > > > > > > > > > > default duration is 10 minutes > > > > > > > > > > you can configure it in tomee.xml: > > > > > > > > > > <TransactionManager type="javax.transaction.TransactionManager"> > > > > > defaultTransactionTimeoutSeconds = 10 minutes > > > > > </TransactionManager> > > > > > > > > > > *Romain Manni-Bucau* > > > > > *Twitter: @rmannibucau <https://twitter.com/rmannibucau>* > > > > > *Blog: **http://rmannibucau.wordpress.com/*< > > > > > http://rmannibucau.wordpress.com/> > > > > > *LinkedIn: **http://fr.linkedin.com/in/rmannibucau* > > > > > *Github: https://github.com/rmannibucau* > > > > > > > > > > > > > > > > > > > > 2013/5/2 James Green <james.mk.gr...@gmail.com> > > > > > > > > > > > Caused by: javax.transaction.RollbackException: Unable to commit: > > > > > > transaction marked for rollback > > > > > > at > > > > > > > > > > > > > > > > > > > > > > > > > > > org.apache.geronimo.transaction.manager.TransactionImpl.commit(TransactionImpl.java:272) > > > > > > at > > > > > > > > > > > > > > > > > > > > > > > > > > > org.apache.geronimo.transaction.manager.TransactionManagerImpl.commit(TransactionManagerImpl.java:252) > > > > > > at > > > > > > > > > > > > > > > > > > > > > > > > > > > org.apache.openejb.core.transaction.JtaTransactionPolicy.completeTransaction(JtaTransactionPolicy.java:328) > > > > > > at > > > > > > > > > > > > org.apache.openejb.core.transaction.TxRequired.commit(TxRequired.java:75) > > > > > > at > > > > > > > > > > > > > > > > > > > > > > > > > > > org.apache.openejb.core.transaction.EjbTransactionUtil.afterInvoke(EjbTransactionUtil.java:76) > > > > > > at > > > > > > > > > > > > > > > > > > > > > > > > > > > org.apache.openejb.core.stateless.StatelessContainer._invoke(StatelessContainer.java:253) > > > > > > at > > > > > > > > > > > > > > > > > > > > > > > > > > > org.apache.openejb.core.stateless.StatelessContainer.invoke(StatelessContainer.java:185) > > > > > > at > > > > > > > > > > > > > > > > > > > > > > > > > > > org.apache.openejb.core.ivm.EjbObjectProxyHandler.synchronizedBusinessMethod(EjbObjectProxyHandler.java:256) > > > > > > at > > > > > > > > > > > > > > > > > > > > > > > > > > > org.apache.openejb.core.ivm.EjbObjectProxyHandler.businessMethod(EjbObjectProxyHandler.java:251) > > > > > > at > > > > > > > > > > > > > > > > > > > > > > > > > > > org.apache.openejb.core.ivm.EjbObjectProxyHandler._invoke(EjbObjectProxyHandler.java:85) > > > > > > at > > > > > > > > > > > > > > > > > > > > > > > > > > > org.apache.openejb.core.ivm.BaseEjbProxyHandler.invoke(BaseEjbProxyHandler.java:279) > > > > > > ... 42 more > > > > > > Caused by: java.lang.Exception: Transaction has timed out > > > > > > at > > > > > > > > > > > > > > > > > > > > > > > > > > > org.apache.geronimo.transaction.manager.TransactionImpl.commit(TransactionImpl.java:266) > > > > > > ... 52 more > > > > > > > > > > > > > > > > > > This is coming from a CXF JAX-RS web service invocation where the > > > > backend > > > > > > services in the container are genuinely going to take several > > minutes > > > > to > > > > > > complete. > > > > > > > > > > > > I'm trying to find documentation in order to see the current > > timeout > > > > > value > > > > > > and increase it but I've not found anything yet. > > > > > > > > > > > > Any clues appreciated! > > > > > > > > > > > > James > > > > > > > > > > > > > > > > > > > > >