Hi,
I tried to enable JMX when running Jersey under Grizzly but it doesn't quite
work. It seems that Management anonymous class is not getting any callback.
Any idea?
thread = com.sun.jersey.api.container.grizzly.GrizzlyWebContainerFactory
.create(uri, SpringServletContainer.class, initParams);
thread.setManagement(new Management() {
public void registerComponent(Object bean, ObjectName oname,
String type) throws Exception {
Registry.getRegistry("jmx", "jmx").registerComponent(bean,
oname, type);
}
public void unregisterComponent(ObjectName oname) throws Exception {
Registry.getRegistry("jmx", "jmx").unregisterComponent(oname);
}
});
thread.setCompression("deflate");
thread.start();
--
View this message in context: http://www.nabble.com/How-to-enable-JMX-with-Jersey-Grizzly-tp24213708p24213708.html
Sent from the Grizzly - Users mailing list archive at Nabble.com.