This content has been marked as final.
Show 4 replies
-
1. Re: Preserve published order originated from same host using a Topic.
jbertram Mar 13, 2015 3:36 PM (in response to joakim.eriksson)If you want to guarantee order you'll need to use the same JMS session for every message you send. However, note that JMS sessions are not thread-safe so you'll need to employ some kind of synchronization if you want to use the session from multiple threads.
-
2. Re: Preserve published order originated from same host using a Topic.
joakim.eriksson Mar 13, 2015 1:49 PM (in response to jbertram)Would it be a overkill to use a local queue using group id on messages where order matter to synchronize the access to the session.
-
3. Re: Preserve published order originated from same host using a Topic.
jbertram Mar 13, 2015 1:54 PM (in response to joakim.eriksson)I'm not sure what you mean. Presumably you'd still have multiple producers sending messages to the local queue and that's where the messages would get out of order, no?
-
4. Re: Preserve published order originated from same host using a Topic.
joakim.eriksson Mar 13, 2015 3:32 PM (in response to jbertram)Ok, I will have to think of a better way to do it, but thanks for your reply.