qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rafael Schloming <rafa...@redhat.com>
Subject Re: How to check whether a listener is running or not?
Date Mon, 23 Aug 2010 13:20:56 GMT
zhaoyi0113@gmail.com wrote:
> I use Java as client to send messages to QPID-Java broker. I want to let
> Producers know whether a listener is listening on a queue. For example,
> Producer A sends a message to QPID broker and if no one is listening on this
> queue, the broker will send a error message to the Producer A. How can I
> make this happen?

You could define the queue as auto-delete with an alternate-exchange set 
to some value that the producer is subscribed to. That way when the 
consumer goes away, the queue goes away, and as a result any queued 
messages would be sent back to the producer.


Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org

View raw message