swaldman/c3p0 — pull request #3 by bvarner (2012-10-15 20:04:04+00:00)
Title: Allow for querying mBeans by predictable (configurable) names.

Change how mBeans names are generated to include the data source name in the attributes (if it has a name).

This allows you to query mbeans by stable name patterns, allowing for reliable instrumentation via JMX between VM instances.

I currently use these patches in production (nearly 18 months) to grab pool telemetry with collectd's JMX probe. Adding the name attribute to the ObjectName allows me to consistently identify the same mbeans across VM restarts thus providing consistent historical data for telemetry graphs.