You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Joseph Shraibman <jk...@selectacast.net> on 2005/03/23 23:14:26 UTC

Re: Getting other Sessions


Michael Greer wrote:
> 
>     List servers = MBeanServerFactory.findMBeanServer(null);
>     MBeanServer server = (MBeanServer)servers.get(0);
> 
>     ObjectName objName = new 
> ObjectName("Catalina:type=Manager,path=/contextPath,host=localhost");
>     
>     String sessionIds = 
> (String)server.invoke(objName,"listSessionIds",null, null);
> 
> You can get the rest by each sessionId.

How do I get a refrence to the Session once I have the id?

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org