[openamq-dev] Disconnect notification between two peers

Mike Owens mikeowens at gmail.com
Tue Nov 6 05:26:35 CET 2007


If I have two peers set up in a client/server arrangement (as I posted in a
previous message), and the server is maintaining state on behalf of the
client (say a database connection with an open transaction), one of the
issues that comes up is handling the possibility of the client disappearing
(crashes, power outage, etc.).

In this case, the AMQ server will of course know that the client has gone
away, but is there any way that the server application (peer) could be
notified as well (most likely by the amq server)? It seems like it may be
possible with some of the console API, but I was wondering if there is a
simple way to do this using the standard API and protocol. Ideally, it would
be nice if the server could just register an interest in knowing if/when the
peer with routing_key #xyz disconnected. Without this, the server will have
to either resort to polling or implementing some kind of timeout, both of
which seam to run counter to the asynchronous message paradigm.

Thanks,

Mike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openamq.org/pipermail/openamq-dev/attachments/20071105/f855bca7/attachment.htm 


More information about the openamq-dev mailing list