I believe this is related to
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=98577&am...
The problem occurs because of this code in SessionAspect:
| /**
http://jira.jboss.org/jira/browse/JBMESSAGING-946 - To accomodate TCK and the
MQ behavior
| * we should behave as non transacted, AUTO_ACK when there is no transaction
enlisted
| * However when the Session is being used by ASF we should consider the case
where
| * we will convert LocalTX to GlobalTransactions.
| * This function helper will ensure the condition that needs to be tested on
this aspect
| * */
| private boolean isXAAndConsideredNonTransacted(SessionState state)
| {
| return state.isXA() && (state.getCurrentTxId() instanceof LocalTx)
&& (state.getDistinguishedListener() == null);
| }
|
This means the converstion of work done outside the tx will only happen when using MDBs.
In the case of using JTA without MDBs state.getDistinguishedListener() will be null.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4085069#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...