[jboss-dev-forums] [Design of JCA on JBoss] - Re: No LastResource gambit for non-xa MDB

adrian@jboss.org do-not-reply at jboss.com
Fri Mar 9 12:33:21 EST 2007


No this is for CMT (and BMT/NotSupported with madness=true :-).

The correct protocol is last resource gambit (assuming MDB uses DB):

1) Prepare DB (vote ok)
2) Commit JMS (session.commit())
3) Commit DB (two phase if 2 works otherwise rollback)

The current protocol for nonXA JMS is "transaction observer" - which is much 
weaker that LRG, we can't stop the DB from committing when jms doesn't commit.


  | tx.commit();
  | if (committed)
  |    session.commit();
  | else
  |    session.rollback();
  | 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026679#4026679

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026679



More information about the jboss-dev-forums mailing list