activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <>
Subject Re: Detect consumers?
Date Thu, 08 May 2008 14:35:35 GMT
2008/5/8 beaker <>:
>  Hello,
>  is it possible for a producer to detect, if there are any consumers on the
>  topic/queue he is sending?

Yes - you can use advisories...

e.g. try using the ConsumerEventSource helper class...

>  I want the producer to only send out messages, if there is someone listening
>  for them.

We could maybe enhance the JMS client so that it can avoid sending
messages to topics which have no consumers (i.e. to reduce the cost of
marshalling the message on the wire and sending it to the broker and
the broker consuming it).


Open Source Integration

View raw message