Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to access current Application in a single Container

 
Vijay Kumar
Ranch Hand
Posts: 260
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2068
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13056
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 260
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how can I install Tomcat's management servlet, for wathing the currnet applications & sessions
thankx
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic