Enabling the Jetty JMX MBean?


#1

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!?)

Thanks!
Alex


#2

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)


#3

Thanks for posting that!


#4

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