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.
-Tim
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]