Hi, I am doing some admin part of my web application. So I want to get no of sessions, execution time etc for all sessions in a tomcat container. "org.apache.catalina.session.ManagerBase" - This tomcat API gives methods to get information. But I don't know how to associate this manager with the tomcat i am using. please If any of you know about this please tell me.
But I don't know how to associate this manager with the tomcat i am using.
Which version of Tomcat are you using? In my copy of Tomcat5.5.9 the directory CATALINA_HOME\server\webapps contains admin, host-manager and manager applications which I can access online because I defined a user with the admin and manager roles. Bill
I am using Tomcat 5.5. Even I have manager and host manager application that I can access.
My requirement is : My application is running remotely. so I want to test how many sessions are creating and their execution time. So I want to develop one Jsp page which gives me this info. Then this page i will deploy in a server where my application is running. Then I want use some tools like Wget which retrives that page thru HTTP.
Like this I can get session related information....
I am trying to use apache tomcat API..
but i am not getting how to use it.. I hope u can understand..
Author and all-around good cowpoke
Joined: Mar 22, 2000
If the management interface works you should be able to get the results of any manager command as a text stream with a simple URL. See this documentation. Seems to me that parsing this text stream will be simpler than your proposed route through JSP. Bill [ July 17, 2006: Message edited by: William Brogden ]