2 Replies Latest reply on Dec 18, 2002 2:57 AM by Bernhard Löwenstein

    Use transactional JMS in JBoss

    Bernhard Löwenstein Newbie


      I want to do this:

      Read some datasets from database and send each dataset to a queue. If there occurs an error, then the whole transaction (= sending messages) should be rolled back.

      The container should take care of controlling the transaction. This means: I configure the corresponding method as "transaction=required" and the rest should be done by container! If an error occurs I throw an EJBException and so the whole transaction will be rolled back by container.

      My question: How can I do this?

      I tried already XAConnectionFactory, createQueueSession(true,0), ... but this doesn't seems to work in this way.

      Thanks for answears, best regards, Bernhard.