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
Can someone help here ? 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 does not seem to be

Re: Using JMX to get ONLY running applications

2016-07-13 Thread Amit Pande
I managed to use jCOnsole and find Mbean names and attributes to get the stateName (STARTED/STOPPED) to see if a web app is available or NOT (j2eeType=WebModule). However, I see the stateName of a web module as STARTED even if there are errors in start-up. SEVERE [localhost-startStop-3]