0 Replies Latest reply on Mar 8, 2010 9:38 AM by Scott Zhang

    Consume message in absolute order

    Scott Zhang Newbie

      In my situation, the message order is absolutely critical, so when exception occured on consuming one message, the consume process should be suspended, and when the error was resolved by hand, the consume process will go on.

       

      So I have two choice to consume message (from topic):

      1、Use mdb to consume messages, but how to stop it when exception occured?

      2、Use session bean to consume message using receive() method, but how to combine receiving message and my own codes in one transaction,

      because I cannot access JMS throw ResourceAdapter (according JEE spec 1.1).

       

      ps: I'm using JBoss AS 4.2.2-GA with HornetQ 2.0.0-GA integrated.

       

      Hope for your advice sincerely.