How does one actually deploy an mbean in tomcat5 so that it is
accessibile via the admin webapp or is this not actually possible?
I have created a TestMBean interface and a simple implementation class
with a get/set and int attribute and copied to
<TOMCAT_HOME>/shared/classes. Along with the classes I created a
deployment descriptor named mbean-descriptor.xml
<?xml version="1.0"?>
<mbeans-descriptors>
<mbean name="Stuff" className="Test" description="Test stuff"
domain="Test" group="Resources" type="TestMBean">
<operation name="getNumber" description="gets the number"
impact="ACTION" returnType="int"></operation>
</mbean>
</mbeans-descriptors>
I then updated the <TOMCAT_HOME>/conf/server.xml so that the listener
included the new mbean-descriptor.xml.
<Server>
<Listener
className="org.apache.catalina.mbeans.ServerLifecycleListener"
descriptors="/mbean-descriptor.xml"></Listener>
I get no errors when restarting but also nothing in the admin webapp or
the jmxproxy.
What am I doing wrong? I had hoped that this would have been as easy
as adding an mbean to JBoss.
rgds
ewan
___________________________________________________________ALL-NEW Yahoo! Messenger -
sooooo many all-new ways to express yourself http://uk.messenger.XXXXXXXXX
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]