tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ravi116 <ravi.varan...@countrywide.com>
Subject Persistent Mbeans
Date Thu, 22 Feb 2007 23:00:14 GMT

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


Mime
View raw message