[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: XA resource and setting the timeout
timfox
do-not-reply at jboss.com
Tue Nov 4 04:04:08 EST 2008
"ataylor" wrote :
|
| If thats the case then we either don't time out at all and return false for setTimeout or we need to keep the tx associated with the Resource manager and return XA_RBTIMEOUT.
The problem with that is how long do we keep the xid for? The xid list could grow without bound, so we'd have to clear it down after a time, and then if it does get cleared down and the tx mgr subsequently decides to commit/rollback on that branch we won't have record of the xid and we'll have to return XAERR_NOTA anyway!
For now, let's return false from setTransactionTimeout, then just timeout tx ourselves according to our own timeout, and return XAERR_NOTA, and double check with Jonathan this is ok.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4186580#4186580
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4186580
More information about the jboss-dev-forums
mailing list