lucene/example/etc/jetty-jmx.xml

38 lines
1.6 KiB
XML

<?xml version="1.0"?>
<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd">
<!-- =============================================================== -->
<!-- Configure the Jetty Server -->
<!-- =============================================================== -->
<Configure>
<Call id="jmxserver" class="javax.management.MBeanServerFactory" name="createMBeanServer">
<Arg>org.mortbay</Arg>
<Call name="createMBean">
<Arg>org.mortbay.util.jmx.MX4JHttpAdaptor</Arg>
<Arg><New class="javax.management.ObjectName"><Arg>mx4j.tools:adaptor=http</Arg></New></Arg>
<Arg><Array type="java.lang.Object"><Item type="int">8082</Item><Item>localhost</Item></Array></Arg>
<Arg><Array type="java.lang.String"><Item>int</Item><Item>java.lang.String</Item></Array></Arg>
</Call>
<Call name="createMBean">
<Arg>org.mortbay.jetty.jmx.ServerMBean</Arg>
<Arg><New class="javax.management.ObjectName"><Arg>org.mortbay:jetty=admin</Arg></New></Arg>
<Arg><Array type="java.lang.Object"><Item>etc/admin.xml</Item></Array></Arg>
<Arg><Array type="java.lang.String"><Item>java.lang.String</Item></Array></Arg>
</Call>
<Call name="createMBean">
<Arg>org.mortbay.jetty.jmx.ServerMBean</Arg>
<Arg><New class="javax.management.ObjectName"><Arg>org.mortbay:jetty=default</Arg></New></Arg>
<Arg><Array type="java.lang.Object"><Item>etc/jetty.xml</Item></Array></Arg>
<Arg><Array type="java.lang.String"><Item>java.lang.String</Item></Array></Arg>
</Call>
</Call>
</Configure>