added JMX to the example.