6 Replies Latest reply on Jul 22, 2015 6:48 AM by Justin Bertram

    Jms consumers concurrency

    Laura delli Paoli Master

      Hi,

      I have two queues (queueA, queueB) and many instances of consumerA and consumerB listening on queueA and queueB respectively. All consumers share the same jms session.

      Suppose consumerA takes a long time for consuming a message (I mean that the onMessage method takes a long time to execute). If a message is published in queueB while consumerA is handling a message, consumerB does not process the message, even if it is not busy.

       

      Can anyone explain me this behavior and how to avoid it?

       

      Laura