Description
This plugin adds JMX MBeanServer support through spring and configures a number MBeans. A direct port of the JMX plugin for Grails. Original plugin made by Ken Sipe.
Plugin features:
- Configures an MBeanServer
- Exposes any Service configured for jmx
- Allows other Spring beans to be configured for jmx
- Addons may expose additional beans
Installation
The current version of griffon-jmx-plugin is 0.5
To install just issue the following command
Usage
There is nothing to do after the install if you have no services to expose. Just run the application and use jconsole to administrate.
Exposing Services
By default, the plugin only supports exposing Services. This is accomplished by add 'jmx' to the static expose property as outlined below:
This will expose the service leverage a convention for the service name. Alternatively you can be very explicit on the object through the following example:
Exposing Spring beans
The plugin also supports exposing other Spring Beans - e.g. registered via src/spring/resources.groovy. This is accomplished by adding 'jmx' to the static expose property as outlined above and using the following code in Config.groovy
Exposing beans on addons
Any addon may expose additional beans to the MBeanServer by adding a exposeWithJmx closure property to its descriptor. The following example shows how GSQL exposes its database
History
Version |
Date |
Notes |
|---|---|---|
0.5 |
09-22-11 |
Release sync with Griffon 0.9.3 |
0.4 |
05-27-11 |
Release sync with Griffon 0.9.2 |
0.3 |
12-21-10 |
Release sync with Griffon 0.9.2-beta-3 |
0.2 |
07-22-10 |
Release sync with Griffon 0.9 |
0.1 |
03-01-10 |
Initial release |


