You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by odysseyfx <in...@bradwillard.com> on 2010/07/20 17:33:17 UTC

What's the best way to delete specific messages from the JMS?

What's the best way to delete specific messages from the JMS? Initially I was
using the activemq specific feature of individual acknowledgement, however I
didn't like the idea of using something not part of the JMS spec.  I
switched to using a browser, and then building a consumer with a selector
for the messageID on demand, but the performance isn't as good because I'm
actually reading the message twice (browse and then consume to perform the
delete).

Any recommendations, suggestions, future hope for the JMS Spec?

Thanks!
Brad
-- 
View this message in context: http://old.nabble.com/What%27s-the-best-way-to-delete-specific-messages-from-the-JMS--tp29215922p29215922.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: What's the best way to delete specific messages from the JMS?

Posted by Joe Fernandez <jo...@ttmsolutions.com>.
What about skipping the browser and simply issuing a selective
receiveNoWait() with the messageID that you're interested in removing from
the queue? 

Joe
http://www.ttmsolutions.com
ActiveMQ reference guide at
http://bit.ly/AMQRefGuide

 

odysseyfx wrote:
> 
> What's the best way to delete specific messages from the JMS? Initially I
> was using the activemq specific feature of individual acknowledgement,
> however I didn't like the idea of using something not part of the JMS
> spec.  I switched to using a browser, and then building a consumer with a
> selector for the messageID on demand, but the performance isn't as good
> because I'm actually reading the message twice (browse and then consume to
> perform the delete).
> 
> Any recommendations, suggestions, future hope for the JMS Spec?
> 
> Thanks!
> Brad
> 

-- 
View this message in context: http://old.nabble.com/What%27s-the-best-way-to-delete-specific-messages-from-the-JMS--tp29215922p29215932.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.