Re: XML configuration of MBeans (extended MLet file)
Eamonn McManus <[email protected]>
| Newsgroups | gmane.comp.java.mx4j.devel |
|---|---|
| Organization | Sun Microsystems |
| Message-ID | <[email protected]> |
Simone, Have you thought about using the java.beans package for this? I'm thinking you could maybe use its XMLEncoder and XMLDecoder, and its Statement and Expression classes. I admit I haven't studied this closely. I also don't understand the relation to MLets. Is the idea that MX4J's MLet will be able to understand this extended file? Or that MX4J will have an implementation-dependent subclass of MLet that does? Regards, -- Éamonn Bordet, Simone wrote: > Hi all, > > I was thinking of adding support in MX4J for a configuration loader that is able to read an XML file that defines the MBeans of the system. > Below there is an example of such an XML file. > > Basically it is able to invoke methods on plain objects and perform MBeanServer operations. > > I'd like to know if you have any suggestion, requirement, improvement to this XML. > > Thanks > > Simon > > <?xml version="1.0" encoding="UTF-8" ?> > > <configuration> > <mbeanserver domain=""> > <create objectname="naming:type=rmiregistry" classname="mx4j.tools.naming.NamingService"> > <arg type="int">1099</arg> > </create> > > <call objectname="naming:type=rmiregistry" operation="start" /> > > <object objectid="address"> > <new classname="javax.management.remote.JMXServiceURL"> > <arg type="string">service:jmx:rmi://localhost/jndi/jmx</arg> > </new> > </object> > > <register objectname="connectors:protocol=rmi"> > <call method="newJMXConnectorServer" classname="javax.management.remote.JMXConnectorServerFactory"> > <arg type="javax.management.remote.JMXServiceURL" refobjectid="address" /> > <arg type="java.util.Map" /> > <arg type="javax.management.MBeanServer" /> > </call> > </register> > > <call objectname="connectors:protocol=rmi" operation="start" /> > > </mbeanserver> > </configuration> > > > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback Program. > SourceForge.net hosts over 70,000 Open Source Projects. > See the people who have HELPED US provide better services: > Click here: http://sourceforge.net/supporters.php > _______________________________________________ > Mx4j-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/mx4j-devel > ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. SourceForge.net hosts over 70,000 Open Source Projects. See the people who have HELPED US provide better services: Click here: http://sourceforge.net/supporters.php