-
1. Re: Does JBossMessaging imposes Message Order?
timfox Oct 25, 2007 9:02 AM (in response to mskonda)Madhu-
I'm not sure i understand your question. Can you elaborate / rephrase ? -
2. Re: Does JBossMessaging imposes Message Order?
mskonda Oct 25, 2007 9:30 AM (in response to mskonda)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? -
3. Re: Does JBossMessaging imposes Message Order?
timfox Oct 25, 2007 10:24 AM (in response to mskonda)No.
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. -
4. Re: Does JBossMessaging imposes Message Order?
mskonda Oct 25, 2007 1:00 PM (in response to mskonda)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?
-
5. Re: Does JBossMessaging imposes Message Order?
timfox Oct 25, 2007 3:13 PM (in response to mskonda)Madhu-
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.