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.

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,

Re: Using JMX to get ONLY running applications

2016-07-13 Thread Amit Pande
tomcat.apache.org>>, >"users-h...@tomcat.apache.org<mailto:users-h...@tomcat.apache.org>" ><users-h...@tomcat.apache.org<mailto:users-h...@tomcat.apache.org>> >Subject: Using JMX to get ONLY running applications > >Hello all, > >I see there are

Re: Using JMX to get ONLY running applications

2016-07-13 Thread Amit Pande
che.org<mailto:users-h...@tomcat.apache.org>" <users-h...@tomcat.apache.org<mailto: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

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