On 05/28/2012 09:53 AM, eugene wrote:
Hello,
Is there a possibility to register a listener that would listen for queue
delete/create events on the MRG side?
I am mostly interested in delete queue for now. Suppose someone removes a
queue (an Admin for example), I want from my app to be notified about it. Is
it possible?
Yes. You can create a MessageConsumer that will receive event messages.
The tricky part at present is that you need to decode these (a patch has
been submitted for review that would make this easier[1]).
See
http://qpid.2158936.n2.nabble.com/Is-it-possible-to-write-a-client-that-gets-notified-of-connections-disconnections-to-broker-td6487251.html#a6487409
for some more detail, including an example built by another Qpid user,
Fraser Adams, who is probably now our leading JMS+QMF expert[2].
[1] https://issues.apache.org/jira/browse/QPID-3906
[2]
http://apache-qpid-users.2158936.n2.nabble.com/file/n6517128/ConnectionAudit.java
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]