0 Replies Latest reply on Dec 27, 2002 3:38 AM by Niranjan Sathe

    onMessage() does not get transaction context

    Niranjan Sathe Newbie

      JBoss 3.0.4
      I am posting a message from a stateless session bean into a queue. To receive the messages on the queue, I have an MDB with CMT. In the onMessage() when I call MessageDrivenBeanContext.getRollbackOnly() I get an 'IllegalStateException: getRollBackOnly can be called only in the context of a transaction' message. Does this mean that the onMessage is executing without any transaction control inspite of the MDB being declared CMT?


      I tried using java:/XAConnectioFactory and java:/JmsXA in the stateless session bean to get the queue connection factory. The above behaviour is observed in both the above cases.

      What could be the reason? Can anyone help.

      - Niranjan