XML configuration of MBeans (extended MLet file)
"Bordet, Simone" <[email protected]>
| Newsgroups | gmane.comp.java.mx4j.devel |
|---|---|
| Message-ID | <[email protected]> |
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