Enabling the Jetty JMX MBean?


Hi folks,

How can we enable the MBean of the embedded Jetty (to monitor inbound requests) ?

We get MBeans for ActiveMQ and things like the ViewProcessor so it seems logical to have the org.eclipse.jetty.server.handler MBean enabled also, but I’m not seeing anything of the sort.

Do we have to provide a custom jetty-spring.xml (replacing OG-Component/config/common/jetty-spring.xml) ? (And if so can anyone provide the relevant Spring XML snippet to add!?)



The following addition to jetty-spring.xml does the trick (thanks to @grkvlt):

(see https://gist.github.com/ahgittin/5772839 - Vanilla doesn’t display special chars correctly)


Thanks for posting that!


See: http://jira.opengamma.com/browse/PLAT-3778
Commit: https://github.com/OpenGamma/OG-Platform/commit/26d57548d94ba1d3613ce7baa868640fe13fc7bc