Multiple receivers against the same Queue on separate sessions
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   sridhara_patoori
Posted On:   Monday, April 1, 2002 07:19 AM

JMS allows multiple QueueReceivers to access the messages from the same queue using multiple threads as long as they are on separate sessions. Say, there are 10 messages on a queue. While thread 1 is processing 1st message, thread 2 could pick up message 2 and commit it. If the 1st thread rolls back on the 1 st messsage, what will JMS do ? Will it retain the message ordering or will it add the message to the end of the queue ?

Would the resultant queue look like this :
10 9 8 7 6 5 4 3 1

or like this :
1 10 9 8 7 6 5 4 3
or
is it undefined
?

Re: Multiple receivers against the same Queue on separate sessions

Posted By:   Martin_Kernland  
Posted On:   Wednesday, April 17, 2002 05:20 AM

I THINK it not defined in the spec. It is a "best effort" case and vendor specific.

You cannot guarantee a certain ordering. Even with setting a priority you will not have
100% guarantee. Again this part is "best effort" and vendor specific.

I hope tis helps,

kerny

Re: Multiple receivers against the same Queue on separate sessions

Posted By:   Andreas_Mueller  
Posted On:   Thursday, April 4, 2002 05:16 AM

Multiple receivers per queue are not part of the JMS spec. It is up to the JMS provider whether it supports it and how it will be handled.
About | Sitemap | Contact