Right, but that's for the older version (AFS/StdServerSession) and is basically giving a warning about using non XA. The JCA adapter simply assumes that if you are not using an XAConnectionFactory, or you have chosen the madness option (ie BMT, CMT/NotSupported) that the local API will be used solely to support redelivery.
However, the problem I see is that the interceptor will suspend the transaction prior to onMessage being invoked in the case of BMT and NotSupported. As result, the DB work being done is not going to effect the overall outcode of the Tx because the underlying XA connection will never be enlisted.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026685#4026685
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026685
We currently print a warning about this at deployment time:
| else if (destination instanceof Queue && con instanceof XAQueueConnection)
| {
| xaSes = ((XAQueueConnection)con).createXAQueueSession();
| ses = ((XAQueueSession)xaSes).getQueueSession();
| }
| else if (destination instanceof Topic && con instanceof TopicConnection)
| {
| ses = ((TopicConnection)con).createTopicSession(transacted, ack);
|
| HERE
|
| log.warn("Using a non-XA TopicConnection. " +
| "It will not be able to participate in a Global UOW");
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026682#4026682
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026682
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