> I need to get a count of the number of active sessions in an instance of
> Tomcat.
>
> Was hoping it could be a flag (Tomcat -getSessionCount) or the like, so I've
> been looking at adding a getSessionCount() method from the StandardManager,
> through to Tomcat... But I need to get the ContextManager for the running
> instance. And that isn't stored as a static.
>
> Is this info available through other avenues? Any solutions/ Pointers in the
> right direction?
You can take a look at the /admin application - there is code to access
the Request and from there you can access the ContextManager, all
Interceptors, etc.
The mechanism for accessing Request is greatly enhanced in 3.3 ( and a
taglib is provided ), but 3.2 and 3.1 should work as well.
Costin
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]