0 Replies Latest reply on Jun 24, 2015 12:37 AM by chathuraran

    Out of order messages received at MDB Jboss EAP 6.4

    chathuraran

      Hi,

       

       

      We have faced an issue in the message driven bean level. That is when messages are arrived to the MDB at the same time will process out of order.

       

      ex:

       

      Message 1, Message 2, Message 3

       

       

      But in the application level onMessage method we received the messages in the order like below.

       

      Message 2, Message 1, Message 3

       

       

      We are using the EJB 3 message driven annotations in our MDB.

       

       

      @MessageDriven(activationConfig = {

       

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

       

              @ActivationConfigProperty(propertyName = "destination", propertyValue = "queue/Queue1"),

       

              @ActivationConfigProperty(propertyName = "subscriptionDurability", propertyValue = "Durable"),

       

              @ActivationConfigProperty(propertyName = "reconnectAttempts", propertyValue = "-1"),

       

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

       

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

       

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

       

              @ActivationConfigProperty(propertyName = "acknowledgeMode", propertyValue = "Auto-acknowledge")}, name = "MessageDrivenBeanEJB")

       

       

      We need to make sure messages arrived to out application in the order they received to the Jboss Application server.

       

      Quick help is appreciated.

       

      Thanks

       

      Message was edited by: Chathura Randika