tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pid <>
Subject Re: Accessing context information remotely - Context.getAvailable() etc.
Date Thu, 06 Jan 2011 19:20:20 GMT
On 1/6/11 6:48 PM, Ziggy wrote:
> Hi,
> Thanks for your response. I am aware of the activeSessions attribute under
> "Catalina:type=Manager,path=/testapp,host=localhost". I am actually doing
> this programmatically and would like to know of an Mbean that would tell me
> if the application is available. The activeSessions attribute can sometimes
> report 0 even when the application is available so it is not reliable.

You asked if you could get the same information.

Did you try JConsole?  Did you examine the other attributes?


>>> I was looking at the above for the above information as i am working on a
>>> client tool that tries to find out this exact information. The tool i am
>>> using connects to Tomcat via JMX but i am not sure if i can get the same
>>> information via JMX. Can i access the Context class? or is there any
>> other
>>> way (Mbeans?) i can check if a context is running via JMX?
>> Connect to a Tomcat instance using JConsole and look for the 'Manager'
>> objects.
>>  Catalina:type=Manager,path=/app01,host=localhost
>> There's an attribute 'activeSessions'.
>> p

View raw message