activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From karen <>
Subject ActiveMQ: Advisory for MessageConsumed
Date Tue, 24 May 2011 12:52:05 GMT

I have a requirement to get the messages that have been successfully
My application is using the DefaultMessageListenerContainer of spring for
the listeners.

I have enabled the advisoryForConsumed. 
My Queue name is 'Test' and it has a listener . 
Correspondingly there is an advisory topic called
'ActiveMQ.Advisory.MessageConsumed.Queue.Test' and this has its own
listener. I tried using the advisory for consumed but it doesnt seem to be
working properly.

My use case to illustrate my problem is below:- 
1) Send a message to Test Queue. 
2) The listener for the Test Queue is invoked. And it throws an
3) Now the topic advisory ActiveMQ.Advisory.MessageConsumed.Queue.Test gets
a new advisory message. 
4) The listener for the ActiveMQ.Advisory.MessageConsumed.Queue.Test is

Is this supposed to happen even when a message was not consumed. I mean does
this advisory topic get a message for successfull as well as unsuccessfull
How do i get to know if a message was successfully consumed. 

Thanks for the help 

PS: i hope this problem isnt linked to spring transaction management.

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message