Re: JMX MBean

2008-05-20 Thread Johnny Kewl
;[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Tuesday, May 20, 2008 10:59 AM Subject: Re: JMX MBean Can anyone help me? I did what you said and still doesnt work!!! I show my code and how I've implemented the whole things. I added in the java/org/apache

Re: JMX MBean

2008-05-20 Thread Liang Xiao Zhu
Can anyone help me? Liang Xiao Zhu escribió: Hi Bill, I did what you said and still doesnt work!!! I show my code and how I've implemented the whole things. I added in the java/org/apache/catalina/deploy/mbeans-descriptors.xml the follow code: ... description="Fully qu

Re: JMX MBean

2008-05-19 Thread Liang Xiao Zhu
Hi Bill, I did what you said and still doesnt work!!! I show my code and how I've implemented the whole things. I added in the java/org/apache/catalina/deploy/mbeans-descriptors.xml the follow code: ... description="Fully qualified class name of the managed object"

Re: JMX MBean

2008-05-18 Thread Bill Barker
To use the mbeans-descriptor.xml method, somewhere in your code you need to do something like: Registry.getRegistry(null, null).registerComponent(this, oname, null ); Where 'oname' is the ObjectName that you want to register your component under. Since you are using TC6, the co

Re: JMX MBean

2008-05-18 Thread Liang Xiao Zhu
Hi Bill, Yes, I am implementing a custom class that doesnt extend from any Tomcat class. But I dont know how to self-register, I tried change the mbeans-descriptor.xml and others things and looks like that nothing works!!! Thanks Bill Barker escribió: Chuck's post works for implementing cu

Re: JMX MBean

2008-05-18 Thread Liang Xiao Zhu
Hi, I still dont understand how to implement what I want to do. Thanks Bill Barker escribió: 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 wi

Re: JMX MBean

2008-05-17 Thread Bill Barker
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 sho

Re: JMX MBean

2008-05-17 Thread Jess Holle
Johnny Kewl wrote: If not and its a bean in your servlet that you want to use. Then this article is the only one I've ever seen on the subject http://oss.wxnet.org/mbeans.html Essentially there is a bean Registry inside tomcat... and the idea is to get your bean into that registry... then TC

Re: JMX MBean

2008-05-17 Thread Johnny Kewl
- Original Message - From: "ubekhet" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Friday, May 16, 2008 10:33 PM Subject: Re: JMX MBean Liang, When I read this, I think, "Damn, the guy is rebuilding Tomcat" ;) Are you? Are you trying to make a

Re: JMX MBean

2008-05-16 Thread ubekhet
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 Hel

RE: JMX MBean

2008-05-16 Thread Caldarale, Charles R
> -Original Message- > From: Liang Xiao Zhu [mailto:[EMAIL PROTECTED] > 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? I