tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Funk <>
Subject Re: web app to show session state for all server sessions
Date Wed, 30 Nov 2005 11:44:22 GMT
If I had to do it - I would use MBeans. See the manager application and 
JMXProxy servlet in the manager application for details on querying jmx.

There might be a gotcha. You might run into occasional ClassNotFound 
exceptions or similar when trying to display the value of the attributes in 
sessions since your classloader is a different classloader than the webapp 
where the session lives.


John MccLain wrote:

> I want to write a webapp that, when a request is made, will display session
> state ( a display of attributes and values within a session) for all
> sessions running in a Tomcat server. I wish the display to be similar to the
> folowing:
> App
> 	session
> 		attribute = value
> My question is, can this be done - querying other context sessions, and
> would it be done with MBeans, or is there a better way? Can someone point me
> to documentation on how to do something like this

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message