This article gives an introduction to using custom JMX MBeans within Grails.
JMX (Java Management eXtension) was an early JSR specification (JSR-3) and the first final release was in 2000 with subsequent maintenance releases in 2002 & 2006. Additional capabilities such as remoting support (JMX-RMI) were added through subsequent JSRs.
The JMX spec in essence allows you to check values of attributes on an MBean (Management Bean), set attribute values, invoke methods (e.g. shutdown) and it also caters for notifications. For this article we’ll focus on the first of those.
Continue reading →