Consuming JMS Messages in Order with Multiple Consumers
The Java Message Service standard states that messages sent by a session to a destination must be received by consumers in the same order in which the messages were sent. However, the Java Message Service standard does not specify how the JMS provider should distribute messages when multiple consumers receive messages from the same destination. Because each JMS provider is different, it is advisable to review the documentation from your JMS provider to determine how to use load-balanced consumers to receive messages in the same order in which the messages were sent to the destination.