activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sean Guo <s...@voxeolabs.com>
Subject Re: Is there a way to know when the standby exclusive consumer become active
Date Tue, 23 Apr 2013 10:33:25 GMT
Thanks for the quick reply. Can I get such kind of notify inside the same
message listener which receives the normal JMS message from the queue?


On Tue, Apr 23, 2013 at 4:21 PM, SuoNayi [via ActiveMQ] <
ml-node+s2283324n4666142h81@n4.nabble.com> wrote:

> yes, you can subscribe the advisory topic to get notified when consumers
> start or stop.
> For exclusive consumer it will release the exclusive lock when it's
> stopped, that means there must be a switch happening.
>
>
>
> At 2013-04-23 14:28:23,"Sean Guo" <[hidden email]<http://user/SendEmail.jtp?type=node&node=4666142&i=0>>
> wrote:
>
> >I'm using active/active exclusive consumer model to consume message from
> the
> >ActiveMQ. Since I'm writing the consumed message files and split the file
> >based on time(e.g. 30min). When the active consumer dies and the standby
> >consume become active I need to start up the timer. So is there a way to
> >know there is a switch happened?
> >
> >
> >
> >--
> >View this message in context:
> http://activemq.2283324.n4.nabble.com/Is-there-a-way-to-know-when-the-standby-exclusive-consumer-become-active-tp4666137.html
> >Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://activemq.2283324.n4.nabble.com/Is-there-a-way-to-know-when-the-standby-exclusive-consumer-become-active-tp4666137p4666142.html
>  To unsubscribe from Is there a way to know when the standby exclusive
> consumer become active, click here<http://activemq.2283324.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4666137&code=c2d1b0B2b3hlb2xhYnMuY29tfDQ2NjYxMzd8LTE5NjM5OTIwMjA=>
> .
> NAML<http://activemq.2283324.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>



-- 
Best Regards,
       Sean Guo




--
View this message in context: http://activemq.2283324.n4.nabble.com/Is-there-a-way-to-know-when-the-standby-exclusive-consumer-become-active-tp4666137p4666145.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message