java - Get notified when a JMS message is consumed -


is there way notified when jms message consumed jms queue? listener or notification?

thanks

i assume using activemq since tagged question it.

you can register advisory notification when message consumed client. see docs advisories , 1 you're looking activemq.advisory.messageconsumed.queue.

===== update =====

oh, errr.. you're using joram, not activemq. it's not simple, use client side interceptor return acknowledgement message queue or topic listen on. interface looks this:

public interface messageinterceptor {     public void handle(javax.jms.message pmessage, javax.jms.session psession); } 

see chapter 3.5. message interceptors of latest joram doc pdf.

you use interceptor_out server side interceptor.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -