You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Cummins College <cu...@gmail.com> on 2010/03/03 07:02:55 UTC

Access to Tomcat's MBeans

Hi,

Could someone please help us how to access Tomcat's Mbeans using Java code.
How is the basic logic to access the default mbeans present in Tomcat.

Please help.

Re: Access to Tomcat's MBeans

Posted by Cummins College <cu...@gmail.com>.
Hi,

Thanks a lot for your help.

jmxsh seems to be for Linux based environment but we're using Windows.

Lambda probe is a good option similar to JConsole.

But 'Source code of manager app' seems to be the thing we were looking for.

Thank you,

- Cummins Group21

Re: Access to Tomcat's MBeans

Posted by André Warnier <aw...@ice-sa.com>.
Bill Barker wrote:
> 
> 
> Otherwise, startup Tomcat once with remote JMX enabled, and browse with 
> the remote client to find the ObjectNames that you want, and just use 
> normal JMX calls.
> 

And try this : http://code.google.com/p/jmxsh/


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Access to Tomcat's MBeans

Posted by Bill Barker <bi...@verizon.net>.

"Pid" <pi...@pidster.com> wrote in message 
news:4B8E40B8.9070807@pidster.com...
> On 03/03/2010 06:32, Caldarale, Charles R wrote:
>>> From: Cummins College [mailto:cummins.group21@gmail.com]
>>> Subject: Access to Tomcat's MBeans
>>>
>>> Could someone please help us how to access Tomcat's Mbeans
>>> using Java code.
>>
>> This is not a direct answer, but you could download the source for Lambda 
>> Probe (www.lambdaprobe.org) and see how it does it.
>
> Or examine the source code of the Manager app, which I believe does that.
>

A good suggestion.

If you are running with a SecurityManager, then you will probably be SOL 
(and rightly so).  Otherwise, the main problem that has been reported here 
is to find the correct MBeanServer, so if you don't mind programming against 
Tomcat, using it's Registry class 
(http://tomcat.apache.org/tomcat-6.0-doc/api/org/apache/tomcat/util/modeler/Registry.html) 
saves pain if there are multiple MBeanServers, but this assumes that you are 
using TC 6.0.x.

Otherwise, startup Tomcat once with remote JMX enabled, and browse with the 
remote client to find the ObjectNames that you want, and just use normal JMX 
calls.

Otherwise, it's the same as anything
>
> p
>
>>   - Chuck
>>
>>
>> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
>> MATERIAL and is thus for use only by the intended recipient. If you 
>> received this in error, please contact the sender and delete the e-mail 
>> and its attachments from all computers.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Access to Tomcat's MBeans

Posted by Pid <pi...@pidster.com>.
On 03/03/2010 06:32, Caldarale, Charles R wrote:
>> From: Cummins College [mailto:cummins.group21@gmail.com]
>> Subject: Access to Tomcat's MBeans
>>
>> Could someone please help us how to access Tomcat's Mbeans
>> using Java code.
>
> This is not a direct answer, but you could download the source for Lambda Probe (www.lambdaprobe.org) and see how it does it.

Or examine the source code of the Manager app, which I believe does that.


p

>   - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Access to Tomcat's MBeans

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Cummins College [mailto:cummins.group21@gmail.com]
> Subject: Access to Tomcat's MBeans
> 
> Could someone please help us how to access Tomcat's Mbeans 
> using Java code.

This is not a direct answer, but you could download the source for Lambda Probe (www.lambdaprobe.org) and see how it does it.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org