I'm not sure i understand your question. Can you elaborate / rephrase ?
Here we go:
My requirement is to fetch the messages from a topic in the same order they have been published. If Messages M1, M2, M3 are published in that order, my consumers should receive them in the same order --> M1, M2 and M3.
Is this possible with JBM 1.2?
That defeats the purpose of using a topic, since you'd have to effectively serialize delivery across all consumers.
If you want that use a queue.
Tim, could you explain me why this isn't possible for Topic?AFAIK, if there's only one subscriber, the order is preserved. However, why is it different if I have multiple subscribers? Could you give me details technically?
I'm not sure if I understand your question still.
a) Clearly each individually subscriber receives messages in order. Is that what you mean?
b) Or do you mean that each consumer receives the same particular message before receiving the same particular message?
b) would be extremely difficult (and not desirable) to do since it would involve distributed locking.