[jboss-dev-forums] [Design of JCA on JBoss] - Re: Problems JCA JMS inflow issue and tx NotSupported
timfox
do-not-reply at jboss.com
Sat Jan 13 11:57:44 EST 2007
"timfox" wrote :
| Interestingly the same problem occurs with BMT as well even though no transaction should have been started at all. BMT doesn't count as an "unspecified tx context" so the reasoning for starting a tx there shouldn't apply as it does for CMT.
Hmmm, it seems that if I omit the acknowledge-mode from the MDB deployment descriptor when using BMT, then it defaults to transacted.
This seems to be in contravention to the EJB spec:
15.4.8
anonymous wrote :
| If the acknowledge-mode deployment
| descriptor element is not specified, JMS AUTO_ACKNOWLEDGE semantics are assumed.
|
This would explain the above behaviour: The JCA adaptor is creating an xasession on the xaconnection even though it's BMT (and should be auto_ack since I haven't specified acknowledge-mode), then trying to call commit on it at the end.
Instead, it should be creating a non transacted session, on a non xa connection and not calling commit at the end since it's non transacted.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4001333#4001333
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4001333
More information about the jboss-dev-forums
mailing list