my dog learned polymorphism*
The moose likes Tomcat and the fly likes Servlet Status Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Servlet Status" Watch "Servlet Status" New topic
Author

Servlet Status

visu Nekk
Ranch Hand

Joined: Sep 06, 2005
Posts: 122
Hi,

How to figure out the status of a servlet in Tomcat/JBoss; i.e. whether it is running or not? The scenario is such that the service method in the servlet runs in an infinite loop. i need to figure out the status.

Thanks in advance,
Visu
Rahul Bhattacharjee
Ranch Hand

Joined: Nov 29, 2005
Posts: 2308
Originally posted by visu Nekk:
Hi,

How to figure out the status of a servlet in Tomcat/JBoss; i.e. whether it is running or not? The scenario is such that the service method in the servlet runs in an infinite loop. i need to figure out the status.

Thanks in advance,
Visu


I do not think there is any management console available in Tomcat which would give you servlet level information , but tomcat's manager gives you the ability to start / stop web application , no of active sessions.

Ideally you should have the service in a independent set of classes and then probably you can use MBeans to monitor the services.
The servlet should only delegate the calls.


Rahul Bhattacharjee
LinkedIn - Blog
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

The Tomcat manager application has very detailed information about every servlet.
Open it up with http://localhost:8080/manager/html
Click on Server Status and then Complete Server Status.

You will see a list of every servlet running under Tomcat, complete with start times, etc.


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: Servlet Status