3 Replies Latest reply on Aug 14, 2014 10:07 AM by Justin Bertram

    JBoss EAP 6.2.0 and HornetQ - FIFO problem

    bpietraszuk Newbie

      Hi all,

       

      Firstly, I would like to say that I know JMS is not designed for sequential/synchronized processing. However, I would like to know it is possible.

       

      I have one queue with one producer (client application) and one consumer (MDB). I send 3 messages with IDs: 1,2,3, but MDB receives messages in incorrect order: 1,3,2. I have disabled MDB and check order in queue using QueueBrowser and order is correct (FIFO).

       

      Could you please explain me why MDB receives messages in other order than I send them?

       

      My MDB configuration:

      @MessageDriven(activationConfig = {

              @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),

              @ActivationConfigProperty(propertyName = "destination", propertyValue = "java:jboss/exported/jms/queue/test"),       

              @ActivationConfigProperty(propertyName = "maxSession", propertyValue = "1"),

              @ActivationConfigProperty(propertyName="maxPoolSize", propertyValue="1"),

              @ActivationConfigProperty(propertyName="threadPoolMaxSize", propertyValue="1")})

       

      Thank you in advance.