[jboss-user] [JBoss Messaging] - Re: Bridge under load throws IllegalStateException

timfox do-not-reply at jboss.com
Mon Sep 17 10:15:20 EDT 2007


I believe this is related to http://www.jboss.com/index.html?module=bb&op=viewtopic&t=98577&postdays=0&postorder=asc&start=40

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#4085069

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



More information about the jboss-user mailing list