[jboss-dev-forums] [Design of JCA on JBoss] - Re: JBossTS/JBossJCA XA/Local transactions

mark.little@jboss.com do-not-reply at jboss.com
Mon Nov 27 04:59:08 EST 2006


Why do you believe you need this support? JBossTS, like other commercial-grade/enterprise transaction systems, supports the TWO-PHASE COMMIT protocol. This means participants need to understand the prepare/commit/rollback messages they will get from the coordinator.

Now obviously not ever participant in existance is 2PC-aware. In that case, as with other products such as Tux and CICS, we support LRCO. This allows a single 1-phase aware participant to be enlisted with a two-phase transaction as long as it is handled correctly within the protocol. If it isn't, or if you try to add more than one 1-phase aware participant, then you will potentially end up with non-atomic behaviour. Believe it or not, but that's not a good idea. Heuristic outcomes are bad enough, but at least with them you have durably recorded the results and can attempt some form or resolution, even if manually.

There's a really good book on the subject:

http://www.amazon.com/Java-Transaction-Processing-Implementation-Professional/dp/013035290X/sr=8-1/qid=1164621306/ref=sr_1_1/102-7032136-5452124?ie=UTF8&s=books

So rather than rush into supporting something like this, I'd prefer to see a discussion about why it is needed in the first place. If there's a real need then we can consider it, but definitely a case of caveat emptor!

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

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



More information about the jboss-dev-forums mailing list