Re: Using multiple Listeners for a Queue
Atul Kumar <[email protected]>
| Newsgroups | gmane.comp.java.openjms.user |
|---|---|
| Message-ID | <[email protected]> |
Thanks for your help Tim. I tried a few things. Seems like it'll work. :)) Regards, Atul On 7/15/05, Tim Anderson <[email protected]> wrote: > OpenJMS works the same way - multiple consumers > can receive messages from the same queue. > Messages will be delivered in a round robin fashion. > > -Tim > > > > -----Original Message----- > > From: openjms-user-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org > > [mailto:openjms-user-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf > > Of Atul Kumar > > Sent: Saturday, 16 July 2005 5:21 AM > > To: [email protected] > > Subject: [openjms-user] Using multiple Listeners for a Queue > > > > Hi- > > > > I found this for weblogic. > > > > Q. Is it possible to have multiple queue receivers listening > > on the same queue, using message selectors (typically > > filtering on a correlation ID) to determine which listener > > actually receives the message? > > > > A. Sun Microsystems' JMS specification does not define the behavior. > > WebLogic JMS 6.x or later supports this. Whenever a message > > lands on the queue, JMS will look at all of the consumers for > > the queue in the order in which they did their receives; > > whoever is the first to match the message receives the > > message. For asynchronous queue consumers, you must set your > > listener first, and then you will be first in the consumer > > list. However, each time an asynchronous queue consumer > > receives a message, the consumer goes to the end of the list. > > Note that unlike topics, if a message does not match a > > selector, it is left in the queue until someone has no > > selector, or a selector that does match. > > > > How can I do this with OpenJMS? Thanks. > > > > Atul > > > > > > ------------------------------------------------------- > > SF.Net email is sponsored by: Discover Easy Linux Migration > > Strategies from IBM. Find simple to follow Roadmaps, > > straightforward articles, informative Webcasts and more! Get > > everything you need to get up to speed, fast. > > http://ads.osdn.com/?ad_idt77&alloc_id492&op=ick > > _______________________________________________ > > openjms-user mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/openjms-user > > > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&opclick > _______________________________________________ > openjms-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/openjms-user > ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click