I have a requirement to create persitant custom mbeans in tomcat (read from a
servlet filter).
I have created a MBean and added the descriptor to server.xml -
<Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"
debug="0"
descriptors="/com/coreservices/activityMonitor/notify/mbeans-descriptors.xml"/>
MbeanDescriptor -
<?xml version="1.0"?>
<mbeans-descriptors>
<mbean name="NotifyBeans"
description="Notify"
domain="Catalina"
group="MyServices"
type="com.coreservices.activityMonitor.notify.NotifyMBean">
<attribute name="fromEmailAddress"
description="From Email address"
type="String"/>
<attribute name="toEmailAddress"
description="To Email Address "
type="String"/>
</mbean>
</mbeans-descriptors>
Any suggestions/ideas would be appreciated.
Ravi
--
View this message in context:
http://www.nabble.com/Persistent-Mbeans-tf3275863.html#a9110239
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To start a new topic, e-mail: [email protected]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]