This example demonstrates how to enable JMX MBeans monitoring feature in Jersey and observe exposed MBeans in JConsole.

Usage is simple. Run the application and connect with JConsole to the server process. Then check Jersey MBeans. Make some requests to the rest resources to see how statistics are updated in MBeans.

Sample contains index.html which describes in details available resources and process of connecting by JConsole. You can reach this file when you deploy the web application in the context path.

## Running the Example

Run the example as follows:

>     mvn clean package jetty:run

This deploys the example using Jetty. Then go to http://localhost:8080/monitoring-webapp which shows you the index.html. Read instructions in order to connect by JConsole and make some requests to the REST api.