JMX
Simple example with Platform MBean Server