All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.brooklyn.entity.webapp.jetty.jetty-brooklyn.xml Maven / Gradle / Ivy

There is a newer version: 1.1.0
Show newest version
[#ftl]
<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd">
<!-- Configure the Jetty JMX Server                                  -->
<Configure id="Server" class="org.mortbay.jetty.Server">
[#if entity.jmxPort > 0]
    <!-- Create an MBeanServer -->
    <!-- 
    <Call id="MBeanServer" class="javax.management.MBeanServerFactory" name="createMBeanServer"/>
     -->

    <!--  Use the JDK PlatformMBeanServer -->
    <Call id="MBeanServer" class="java.lang.management.ManagementFactory" name="getPlatformMBeanServer"/>

    <!-- initialize the Jetty MBean container -->
    <Get id="Container" name="container">
      <Call name="addEventListener">
        <Arg>
          <New class="org.mortbay.management.MBeanContainer">
            <Arg><Ref id="MBeanServer"/></Arg>
            <Set name="managementPort">${entity.jmxPort?c}</Set>
            <Call name="start" />
          </New>
        </Arg>
      </Call>
    </Get>

    <!-- Add a remote JMX connector  -->
    <!-- 
    <Call id="jmxConnector" class="javax.management.remote.JMXConnectorServerFactory" name="newJMXConnectorServer">
      <Arg>
        <New class="javax.management.remote.JMXServiceURL">
          <Arg>service:jmx:rmi:///jndi/rmi:///jettymbeanserver</Arg>
        </New>
      </Arg>
      <Arg/>
      <Arg><Ref id="MBeanServer"/></Arg>
      <Call name="start"/>
    </Call>
     -->
[/#if]
</Configure>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy