-
1. Re: How to list connected users?
eugene-71 Aug 30, 2010 3:55 AM (in response to eugene-71)Well, I found a way to maintain list of online users - JMS connection, which is actually HornetQConnection, have method getInitialSession(), which returns DelegatingSession, which have method getName(). And this name match with session id, which I can get on server using listSessions().
So, on init client send name of initial session to server via EJB call, and server maintain table with users and their session ids. Then, server will periodically call listConnectionIDs()/listSessions() and check which users have active sessions.
But this way looks like dirty hack, so there should be a better way, eh?
-
2. Re: How to list connected users?
jmesnil Aug 30, 2010 3:50 AM (in response to eugene-71)Eugene Romanenko wrote:
But this way looks like dirty hack, so there should be a better way, eh?
https://jira.jboss.org/browse/HORNETQ-416
We'll add more info returned by listConnections() including the remote address and the caller principal
-
3. Re: How to list connected users?
eugene-71 Aug 30, 2010 3:57 AM (in response to jmesnil)Thank you, Jeff. Looking forward for new versions of jboss/hornetq...