Jump to: navigation, search

Difference between revisions of "Jetty/Feature/JMX"

< Jetty‎ | Feature
Line 1: Line 1:
{{Jetty Feature
+
{{Jetty JMX Integration
 
| introduction = The Jetty [http://java.sun.com/products/JavaManagement/ JMX] integration is based on the ObjectMBean implementation of DynamicMBean. This implementation allows an arbitrary POJO to be wrapped in an MBean and for meta data to be provided by [http://dev.eclipse.org/viewcvs/index.cgi/jetty/trunk/jetty-jmx/src/main/resources/org/eclipse/jetty/?root=RT_Jetty properties files]  
 
| introduction = The Jetty [http://java.sun.com/products/JavaManagement/ JMX] integration is based on the ObjectMBean implementation of DynamicMBean. This implementation allows an arbitrary POJO to be wrapped in an MBean and for meta data to be provided by [http://dev.eclipse.org/viewcvs/index.cgi/jetty/trunk/jetty-jmx/src/main/resources/org/eclipse/jetty/?root=RT_Jetty properties files]  
  
 
The creation of MBeans is coordinated by the MBeanContainer implementation of the Container.Listener interface. The Jetty Server and it's components use a [http://download.eclipse.org/jetty/stable-7/apidocs/org/eclipse/jetty/util/component/Container.html Container] to maintain a containment tree of components and to support notification of changes to that tree. The MBeanContainer class listens for Container events and creates and destroys MBeans as required to wrap all Jetty components.  
 
The creation of MBeans is coordinated by the MBeanContainer implementation of the Container.Listener interface. The Jetty Server and it's components use a [http://download.eclipse.org/jetty/stable-7/apidocs/org/eclipse/jetty/util/component/Container.html Container] to maintain a containment tree of components and to support notification of changes to that tree. The MBeanContainer class listens for Container events and creates and destroys MBeans as required to wrap all Jetty components.  
  
| body = Using Jetty MBeans  
+
| body =
 +
 
 +
== Using Jetty MBeans ==
  
 
The simplest way to use Jetty MBeans is to use the JVM supplied [http://java.sun.com/developer/technicalArticles/J2SE/jconsole.html JConsole] utility. An internal HTTP agent can also be used (see jetty-jmx.xml config file comments).  
 
The simplest way to use Jetty MBeans is to use the JVM supplied [http://java.sun.com/developer/technicalArticles/J2SE/jconsole.html JConsole] utility. An internal HTTP agent can also be used (see jetty-jmx.xml config file comments).  
Line 29: Line 31:
 
   <configuration>
 
   <configuration>
 
     <scanintervalseconds>10</scanintervalseconds>
 
     <scanintervalseconds>10</scanintervalseconds>
'''    <jettyconfig>src/etc/jetty-jmx.xml</jettyconfig>'''
+
    <jettyconfig>'''src/etc/jetty-jmx.xml'''</jettyconfig>
 
     <userrealms>
 
     <userrealms>
 
       <userrealm implementation="org.mortbay.jetty.security.HashUserRealm">
 
       <userrealm implementation="org.mortbay.jetty.security.HashUserRealm">

Revision as of 20:04, 21 December 2009

Template:Jetty JMX Integration