org.apache.brooklyn.entity.webapp.jetty.jetty-brooklyn.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of brooklyn-software-webapp Show documentation
Show all versions of brooklyn-software-webapp Show documentation
Brooklyn entities for Web App software processes
[#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>