activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dejan Bosanac <de...@nighttale.net>
Subject Re: ActiveMQ: Advisory for MessageConsumed
Date Tue, 24 May 2011 13:13:24 GMT
Hi,

the advisory is sent when the message is acknowledged to the broker (as
consumed). Not sure about your Spring setup but it seems that even if you
throw an exception it will consider the message as successfully consumed.


Regards
-- 
Dejan Bosanac - http://twitter.com/dejanb
-----------------
The experts in open source integration and messaging - http://fusesource.com
ActiveMQ in Action - http://www.manning.com/snyder/
Blog - http://www.nighttale.net

Connect at CamelOne <http://camelone.com/> May 24-26

The Open Source Integration Conference



On Tue, May 24, 2011 at 2:52 PM, karen <jaskaran1981@gmail.com> wrote:

> Hello,
>
> I have a requirement to get the messages that have been successfully
> consumed.
> 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
> exception(intentionally).
> 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
> invoked.
>
> 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
> consumption?
> 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:
> http://activemq.2283324.n4.nabble.com/ActiveMQ-Advisory-for-MessageConsumed-tp3547010p3547010.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message