tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Barker" <wbar...@wilshire.com>
Subject Re: JMX MBean
Date Sun, 18 May 2008 01:29:03 GMT
Chuck's post works for implementing custom Tomcat components (e.g. a custom 
Realm extending RealmBase).  If you are implementing a custom class that 
doesn't extend any Tomcat class, then your class will have to self-register 
itself.  Since you say you are using TC6, the default configuration should 
give you access to the Registry class to allow you to do it using the 
mbeans-descriptor.xml method that the (forked) commons-modeler uses.

"ubekhet" <ubekhet@goldigolino.com.es> wrote in message 
news:482DEF93.80001@goldigolino.com.es...
> Hi Caldarale,
>
> Yes, I use the current version of Tomcat. Thanks for your link, but I want 
> to know how to implement MBean, because according the web you gave, I have 
> to add my MBean to the mbeans-descriptor.xml and also the folder where is 
> contained.
>
> For example, if I want to implement the HelloWorld in 
> java/org/apache/catalina/mbeans, first of all I have to add to 
> mbeans-descriptor.xml in java/org/apache/catalina and then also in 
> java/org/apache/catalina/mbeans.
>
> On the other hand, I've implemented HelloWorld.java in 
> java/org/apache/catalina/deploy and HelloWorldMBean as interface in 
> java/org/apache/catalina/mbeans. This implementation is the correct way? 
> Other way in the same java/org/apache/catalina/deploy directory contain 
> another mbeans-descriptor.xml file
>
> Can you say me, if I am right?
>
> Thanks a lots!!!
>
> Caldarale, Charles R wrote:
>>> -----Original Message-----
>>> From: Liang Xiao Zhu [mailto:ubekhet@goldigolino.com.es] Subject: JMX 
>>> MBean
>>>
>>> I am searching how to implement a MBean for a class that I implemented, 
>>> which add some new funcionality to Tomcat.
>>>
>>
>> Don't suppose you'd care to tell us what version of Tomcat you're using?
>>
>> If it's the current level, have you followed these instructions?
>>
>> http://tomcat.apache.org/tomcat-6.0-doc/mbeans-descriptor-howto.html
>>
>>  - 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 start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
> 




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


Mime
View raw message