Search code examples
jettycometd

Unable to find ManagedAttributes in jetty jars


Which jar correspond to this org.eclipse.jetty.server.context.ManagedAttributes?

I am trying to expose bayeux mbeans as documented here. But just out of curiosity I was trying to look for source of above mentioned file and am unable to find it.

All search results are ending in annotation jar which is a different class.

P.S. Jetty 9.2.2


Solution

  • The string org.eclipse.jetty.server.context.ManagedAttributes is a constant field of class ContextHandler.

    ContextHandler will look up the beans and update the beans belonging to this context.

    The jetty-jmx module registers itself as a listener for bean updates, and when an update event is fired, it wraps the correspondent bean in a MBean, and export it to the MBeanServer.