Tomcat and MBean deployment
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Ard_Nam
Posted On:   Tuesday, May 25, 2004 04:10 AM

I list out the steps that I did to deploy a custom MBean in Tomcat 5.0. MBean: package.path.LogServiceMBean (Standard MBean) Impl: package.path.LogService I followed the steps as described in the documentation http://jakarta.apache.org/tomcat/tomcat-4.1-doc/mbeans-descriptor-howto.html mbean-descriptor.xml className="package.path.LogService" description="Service to read logged info" group="LogService" domain="Catalina"> ... then in the server.xml debug="0" descriptors="/packag   More>>

I list out the steps that I did to deploy a custom MBean in Tomcat 5.0.



MBean: package.path.LogServiceMBean (Standard MBean)

Impl: package.path.LogService



I followed the steps as described in the documentation



http://jakarta.apache.org/tomcat/tomcat-4.1-doc/mbeans-descriptor-howto.html



mbean-descriptor.xml




className="package.path.LogService"
description="Service to read logged info"
group="LogService"
domain="Catalina">

...




then in the server.xml




debug="0"
descriptors="/package/path/mbean-descriptor.xml"/>



Then restarted the server and at the client end using MX4J connector:



ObjectName name = new ObjectName("Catalina:type=LogService");
server.queryMBeans(name, null);



This returns nothing!!I guess my MBean isnt registered atall at the startup.



I dont understand the "group" attribute at the mbean tag of the mbean-descriptor.xml file.



Where actually am I going wrong?



thanx

Ard

   <<Less
About | Sitemap | Contact