How to get active sessions in tomcat 5.0?

Hi,

As I am working on monitoring related requirement, I need to get no. Of active sessions,sessions created, etc.

I found interesting code in ManagerServlet, As it has some protected methods, I cant call it from its object, I need to create servlet for my work, So I even can't extend ManagerServlet, So I've created one POJO for that, But now I need to populte the context and many other objects,

Is there any other way out for this?,

I really appriciate any kind of help. :-)

-Jeff

[524 byte] By [jeff_marsha] at [2008-1-13]