[email protected] 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.
--Rafael --------------------------------------------------------------------- Apache Qpid - AMQP Messaging Implementation Project: http://qpid.apache.org Use/Interact: mailto:[email protected]
