users@glassfish.java.net

Re: Order of the messages delivery to MDB in JMS is not gauranteed

From: Nigel Deakin <nigel.deakin_at_oracle.com>
Date: Sun, 05 Sep 2010 11:30:49 +0100

Saikiran,

saikiranp wrote, on 02/09/2010 07:31:
>
> Hi,
> if we use MDBs as JMS consumers, ordering of the messages is not
> guaranteed due to the multi thread environment. That means the order in
> which messages are consumed by MDBs is not same as the order in which they
> are added to the queue?
>
> Application servers like weblogic delivers the
> messages in the order in which they are added to the queue. I verified it
> on sailfin that it doesn’t support.
>
> Does sailfin also supports this behavior with some configuration changes?
>
> Any clues on this on how to get the messages in order?
>

The only way to guarantee serial processing of messages is to use a single MDB.

Nigel