You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ravi116 <ra...@countrywide.com> on 2007/02/23 00:00:14 UTC
Persistent Mbeans
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: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org