That would also work. As for specifying what MBeans to load at startup, you could use the MLET service of JMX and have it load the MBeans. You wouldn't have to create a custom config then.
-----Original Message----- From: Kris Schneider [mailto:[EMAIL PROTECTED] Sent: Friday, June 06, 2003 8:06 AM To: Struts Users Mailing List Subject: RE: Struts & JMX Why not take a similar approach to something like ValidatorPlugIn that uses a separate config file (or set of config files)? To set up the Validator, you do something like the following in struts-config.xml: <plug-in className="org.apache.struts.validator.ValidatorPlugIn"> <set-property property="pathnames" value="/WEB-INF/validator-rules.xml,..."/> </plug-in> The ValidatorPlugIn class exposes a property called "pathnames" that will be set automatically by Struts. Seems like this would work for your JMX stuff as well. Of course, if you don't need access to anything Struts-specific, you could use a ServletContextListener or a separate servlet that's the first one initialized in your app. Quoting Mike Jasnowski <[EMAIL PROTECTED]>: > Yes, take a look at the "className" attribute found on some of the elements > like <forward> and <action> there you can do "some" extension of the > config. > Not sure to the extent you are describing. > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Friday, June 06, 2003 6:30 AM > To: [EMAIL PROTECTED] > Subject: Struts & JMX > > > Hi all, > i have written an app that uses MBean for management. > i need to register them at startup time, so in a way i can use > struts plugins. > but i would be more interested to know how to extend the struts config > file in order to declare the mbean that i use, so that at startup time > all those mbean will be created and registered with the MBean server. > So, i m looking for a way to do teh exact behaviour as plugin, but instead > of declaring > <plug-in className="...."> > > write something like > <jmxagent classname="...." > <mbean classname="...." > objectName="...." > </mbean> > </jmxagent> > > > (jmx agent above is needed in order to connect to mbeanserver. so, jmxagent > would be the plugin, and all mbean below will be created and registered > with > the > agent) > > > anyone has a clue on how to extend the struts config file? > > regards > marco > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > -- Kris Schneider <mailto:[EMAIL PROTECTED]> D.O.Tech <http://www.dotech.com/> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

