Re: Using JMX to get ONLY running applications

2016-07-13 Thread Amit Pande
Thanks a lot, Mark for the pointers. And I apologies if the questions here raise a doubt about lack of homework. Personally I do try to use Google and/or read and understand documentation as much as I can. Sometimes however I feel (may be wrongly again), documentation is not enough. E.g. Unless

Re: Using JMX to get ONLY running applications

2016-07-13 Thread Mark Thomas
On 13/07/2016 12:14, Amit Pande wrote: > It seems the stateName attribute of MANAGER or WEBMODULE Mbean is NOT > getting set correctly if there are any servlet errors. > > In particular, when Spring dispatcher servlet is failed to load then the > applications state should be STOPPED. However, that

Re: Using JMX to get ONLY running applications

2016-07-13 Thread Amit Pande
Amit > >From: Amit Pande mailto:amit.pa...@veritas.com>> >Date: Tuesday, 12 July 2016 9:56 pm >To: "users@tomcat.apache.org<mailto:users@tomcat.apache.org>" >mailto:users@tomcat.apache.org>>, >"users-h...@tomcat.apache.org<mailto:users-h...@tomcat

Re: Using JMX to get ONLY running applications

2016-07-13 Thread Amit Pande
o:users-h...@tomcat.apache.org>> Subject: Using JMX to get ONLY running applications Hello all, I see there are JMX APIs to get the web applications currently deployed in Tomcat. However, I see that even if the applications are failed to deploy, they still get listed. Is there any way to g

Using JMX to get ONLY running applications

2016-07-12 Thread Amit Pande
Hello all, I see there are JMX APIs to get the web applications currently deployed in Tomcat. However, I see that even if the applications are failed to deploy, they still get listed. Is there any way to get ONLY deployed and RUNNING applications ? Below is sample snippet which gives all the c