On 1/6/11 6:48 PM, Ziggy wrote:
> Hi,
>=20
> Thanks for your response. I am aware of the activeSessions attribute un=
der
> "Catalina:type=3DManager,path=3D/testapp,host=3Dlocalhost". I am actual=
ly doing
> this programmatically and would like to know of an Mbean that would tel=
l me
> if the application is available. The activeSessions attribute can somet=
imes
> 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?
p
>>> 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 s=
ame
>>> 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=3DManager,path=3D/app01,host=3Dlocalhost
>>
>> There's an attribute 'activeSessions'.
>>
>>
>> p
>>
>>
>>
>=20
|