[jboss-dev-forums] [JBoss Messaging Development] - Re: XA resource and setting the timeout
jmesnil
do-not-reply at jboss.com
Mon Sep 28 06:57:09 EDT 2009
to sum up,
We return false from setTransactionTimeout and use our own tx timeout handler
We only rollback non-prepared tx when they timed out (with a default tx timeout of 5 mins)
A prepared tx will *not* be checked for timeout. It is up to the admin to decide a heuristic completion
(we offer management operations to commit/rollback a prepared tx).
Related to this, XAResource.recover() javadoc specifies to return prepared tx *and* heuristically
completed tx.
Currently, we return only the prepared tx.
Once [link]https://jira.jboss.org/jira/browse/HORNETQ-33[/link] is fixed, we will be able to return the heuristically completed tx.
I'm curious to know how the TM will handle the heuristically completed tx returned by recover()...
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4257319#4257319
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4257319
More information about the jboss-dev-forums
mailing list