[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Few XA Questions...
clebert.suconic@jboss.com
do-not-reply at jboss.com
Thu Mar 19 16:57:11 EDT 2009
- In what circunstance xaSession.end(xid, XAResource.TMFAIL) would be called?
I have made this simple test. and I would expect a commit call to a failed xaSession throwing an exception:
public void testFailXID() throws Exception
| {
| Xid xid = newXID();
| ClientSession session = sessionFactory.createSession(true, false, false);
| session.start(xid, XAResource.TMNOFLAGS);
| session.end(xid, XAResource.TMFAIL);
| session.commit(xid, true); // shouldn't this throw an exception?
|
| session.close();
|
| }
|
This is more a question for TM guys:
In what cirscunstance xaSession.forget would be called by a transactionManager. I looked into Arjuna and I couldn't find it making that call anywhere.
For JBossMessaging we are just ignoring the call (we couldn't find much use for it).
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4219620#4219620
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4219620
More information about the jboss-dev-forums
mailing list