aspose file tools*
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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
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: 2057
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: 12805
    
    5
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
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