Mathias,<div><br></div><div>Well I haven't researched this, but it's something that I need to implement in the near future.</div><div>Basically, I have a public broker which clients (android devices in my case) connect and disconnect. When they log-in it would be considered that they are 'active' if they log-out it would be considered that they are 'inactive.'</div>
<div><br></div><div>This is important because other clients need to know information about 'active' clients.</div><div><br></div><div>I haven't done much research into it because I'm avoiding it until I get closer to release it to the real world.</div>
<div><br>I am indeed interested in network connects/disconnects, but I would also need to know the username of the client that just logged in.</div><div>(for example, if the client suddenly disconnects I need to set their status to 'inactive' in my global database.) </div>
<div><br></div><div>Other than that, I think my best choice would be to bind to the amq.rabbitmq.log exchange (didn't know about it before) and parse the log messages. </div><div>However, that seems a bit brittle for me (might change between versions), but it would work well.</div>
<div><br></div><div>Thanks for your suggestions, it might help the original poster as well.</div><div><br><div class="gmail_quote">On Mon, Mar 14, 2011 at 12:43 PM, Matthias Radestock <span dir="ltr"><<a href="mailto:matthias@rabbitmq.com">matthias@rabbitmq.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Miguel,<div class="im"><br>
<br>
On 14/03/11 19:27, Miguel Morales wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I too would be interested in this. Not sure if anything like this<br>
exists but basically it could be some sort of callback mechanism where<br>
we are notified of when a client has connected/disconnected to the broker.<br>
</blockquote>
<br></div>
What do you need this for?<br>
<br>
And what information would have to be passed to such a callback?<br>
<br>
If you are just interested in network-level connect/disconnect events then a simple TCP proxy could give you that information.<br>
<br>
Or you could do some live processing of rabbit's log files, which, amongst other things, contain all connect/disconnect events. Or you could get the log events over AMQP by binding to the amq.rabbitmq.log topic exchange.<br>
<br>
<br>
Regards,<br><font color="#888888">
<br>
Matthias.<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>~ Jeremiah:9:23-24<br>Android 2D MMORPG: <a href="http://solrpg.com/" target="_blank">http://solrpg.com/</a> <a href="http://www.youtube.com/user/revoltingx" target="_blank">http://www.youtube.com/user/revoltingx</a><br>
</div>