Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

Persistent Mbeans

Ravi116

2007-02-22



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


--
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.