SECTION: 600-J2EE TITLE: jsr77 QUESTION: Does Jetty support JSR77 statistics? Yes!

To enable JSR77 for Jetty, you:

1. ensure you have a distribution of Jetty that includes the extra packages such as JettyPlus or that you have built the `$JETTY_HOME/extra/plus` and `$JETTY_HOME/extra/jsr77` packages
2. uncomment these lines from the `$JETTY_HOME/extra/etc/jettyplus.xml` config file:

        <Set name="WebApplicationConfigurationClassNames">
          <Array type="java.lang.String">
            <Item>org.mortbay.jetty.plus.PlusWebAppContext$Configuration</Item>
            <Item>org.mortbay.jetty.servlet.JettyWebConfiguration</Item>
            <Item>org.mortbay.jetty.servlet.jsr77.Configuration</Item>
          </Array>
        </Set>

3. configure your webapps as necessary in `extra/etc/jettyplus.xml`
4. run Jetty with jmx enabled:

       java -Dmain.class=org.mortbay.xml.XmlConfiguration -DSTART=extra/etc/start-plus.config -jar start.jar extra/etc/jettyplus-jmx.xml

You should now be able to surf to `http://localhost:8082` and see the JSR77 mbeans for each servlet in your webapp.