RE: Non-destructive listener?
"Tim Anderson" <[email protected]>
| Newsgroups | gmane.comp.java.openjms.user |
|---|---|
| Message-ID | <[email protected]> |
> From: Nicolaus.Bauman-SWCg6hSX5lit/[email protected] > > Sure, but doesn't a QueueBrowser have the issue of sometimes > mising a message that might have been picked up by another > listener? In other words, can a QueueBrowser _miss_ a message? Yes, a QueueBrowser can miss a message if it is being consumed by a QueueReceiver. However, you can get around this by using a QueueBrowser to scan the queue for a particular message, and then use a QueueReceiver to consume the message by selecting on the message's JMSMessageID. I have used this approach in the past, but wouldn't recommend it - its fairly resource intensive. Much better off using topics. -Tim > > -----Original Message----- > From: openjms-user-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org > [mailto:openjms-user-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org]On Behalf Of > Tim Anderson > Sent: Tuesday, November 01, 2005 8:40 PM > To: [email protected] > Subject: RE: [openjms-user] Non-destructive listener? > > > For queues, use a QueueBrowser. > For topics, each subscriber sees its own copy of a message to > the topic, so the MessageListener is 'non-destructive' > with respect to other subscribers to the same topic. > > -Tim > > > -----Original Message----- > > From: openjms-user-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org > > [mailto:openjms-user-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of > > Nicolaus.Bauman-SWCg6hSX5lit/[email protected] > > Sent: Wednesday, 2 November 2005 7:50 AM > > To: [email protected] > > Subject: [openjms-user] Non-destructive listener? > > > > Is it possible to have a MessageListener that reads non-destructive? > > > > Nicolaus Bauman > > Developer: TIR - SPS > > * 612.667.2170 > > * 612.232.7120 > > This message may contain confidential and/or privileged > information. > > If you are not the addressee or authorized to receive this for the > > addressee, you must not use, copy, disclose, or take any > action based > > on this message or any information herein. If you have > received this > > message in error, please advise the sender immediately by > reply e-mail > > and delete this message. Thank you for your cooperation. > > > > > > > > ------------------------------------------------------- > > SF.Net email is sponsored by: > > Tame your development challenges with Apache's Geronimo App > > Server. Download it for free - -and be entered to win a 42" > > plasma tv or your very own Sony(tm)PSP. Click here to play: > > http://sourceforge.net/geronimo.php > > _______________________________________________ > > openjms-user mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/openjms-user > > > > > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App > Server. Download > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > openjms-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/openjms-user > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App > Server. Download > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > openjms-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/openjms-user > ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php