[jboss-dev-forums] [Design of JBoss Transaction Services] - JBoss TS JTA - unsetting current transaction association
timfox
do-not-reply at jboss.com
Sun Jan 7 09:42:00 EST 2007
If I do the following:
|
| txMgr.begin();
|
| Transaction tx = txMgr.getTransaction();
|
| tx.commit();
|
| tx = txMgr.getTransaction();
|
| assertNull(tx);
|
|
The assertion fails (I would expect the tx.commit() to cause the association between the current thread and transaction to be broken).
But the following passes:
|
| txMgr.begin();
|
| Transaction tx = txMgr.getTransaction();
|
| txMgr.commit();
|
| tx = txMgr.getTransaction();
|
| assertNull(tx);
|
|
Is this behaviour by design? With the old JBoss JTA implementation both the above cases would pass
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3998683#3998683
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3998683
More information about the jboss-dev-forums
mailing list