1 Reply Latest reply on Dec 28, 2002 9:05 AM by Adrian Brock

    Transacted JMS

    Dhiren Newbie

      Could anyone assist me as to how to configure JBoss for transacted Messaging involving database as well as messages in the same transaction spaning multiple statless session bean.

      I am having issues with transacted messaging.

      I have an ejb1(stateless session bean) in which I perform database update and then call a method on ejb2 (stateless session bean), which sends message to a message queue. As I need both, the database update and messaging, to either succeed or fail as an atomic unit, I need to start the transaction in ejb1 and span the same to ejb2.

      How do I configure JBoss to use transacted JMS. I believe I need to use jmsXA however I don't know how to configure jboss for the same.

        • 1. Re: Transacted JMS
          Adrian Brock Master








          InitialContext ctx = new InitialContext();
          QueueConnectionFactory qcf = (QueueConnectionFactory) ctx.lookup("java:comp/env/jms/MyQueueConnection");