The jmxjr gem allows you to access JMX in a ruby way. The shim uses the Dynamic MBeans to allow users to attach ruby objects to JMX beans.