tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joseph Shraibman <...@selectacast.net>
Subject Re: Getting other Sessions
Date Wed, 23 Mar 2005 22:14:26 GMT


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


Mime
View raw message