This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Servlets and the fly likes how to access current Application in a single Container Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "how to access current Application in a single Container" Watch "how to access current Application in a single Container" New topic
Author

how to access current Application in a single Container

Vijay Kumar
Ranch Hand

Joined: Jul 24, 2003
Posts: 260
hi.. alll
is there any way throght which I can get all the running application in my tomacat & all the no of session created by each application

thankx
Jesus Angeles
Ranch Hand

Joined: Feb 26, 2005
Posts: 2036
maybe you can use ServletContextListener and HttpSessionListener

you can write to a central area, like a file or database, when application is opened or closed.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12269
    
    1
Just install Tomcat's management servlet - it will give you the list of running applications and the number of open sessions in each. You also get the ability to stop, start and reload each application. There is both an HTML interface and a command line interface.
Documentation is probably right there in your tomcat-docs directory.
Bill


Java Resources at www.wbrogden.com
Vijay Kumar
Ranch Hand

Joined: Jul 24, 2003
Posts: 260
how can I install Tomcat's management servlet, for wathing the currnet applications & sessions
thankx
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

It ships with Tomcat:
http://localhost:8080/manager/html-manager-howto.html


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to access current Application in a single Container
 
Similar Threads
Really nutty session problem. Please help :(
New Session Created Randomly in Tomcat 5.0.28
Tech Word Game
listing all online users on a JSP page
single sign-on