Skip to content

Instantly share code, notes, and snippets.

@ahgittin
Created June 13, 2013 10:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahgittin/5772839 to your computer and use it in GitHub Desktop.
Save ahgittin/5772839 to your computer and use it in GitHub Desktop.
Additional lines to insert into OpenGamma jetty-spring.xml to enable the Jetty MX bean. http://forums.opengamma.com/forum/discussion/comment/743
<bean id="standardMBeanServer" class="org.springframework.jmx.support.MBeanServerFactoryBean">
<property name="locateExistingServerIfPossible" value="true" />
</bean>
<bean id="jettyJMXExporter" class="org.springframework.jmx.export.MBeanExporter">
<property name="beans">
<map>
<entry key="com.opengamma.jetty:service=HttpConnector" value-ref="connector" />
<entry key="com.opengamma.jetty:service=HttpServer" value-ref="server" />
</map>
</property>
<property name="server" ref="standardMBeanServer" />
</bean>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment