Your opinion matters! Please fill in the InfoQ Survey!

Beans Exposed with JMX Builder

| by Craig Wickesser Follow 0 Followers on Dec 20, 2008. Estimated reading time: 1 minute |

A note to our readers: As per your request we have developed a set of features that allow you to reduce the noise, while not losing sight of anything that is important. Get email and web notifications by choosing the topics you are interested in.

One concept to come out of Groovy is the notion of builders. Builders can be described as a consistent and concise syntax for building a tree of objects. They are used for DOM-like API's, Ant tasks, Swing GUI's and more. Earlier in 2008 Vladimir Vivien decided to create a builder for the JMX API which works with Groovy 1.5 and Java 5 or newer.

The current version boasts the following features:

  • Domain Specific Language (DSL) for JMX API using Builder pattern
  • Simplified JMX API's programmability
  • Maintain the natural Groovy syntax
  • Declaratively expose Java/Groovy objects as JMX managed MBeans
  • Support class-embedded or explicit descriptors
  • Inherent support for JMX's event model
  • Seamlessly create JMX event broadcasters
  • Attach event listeners as inline closures
  • Use Groovy's dynamic nature to easily react to JMX events notifications
  • Provides a flexible registration policy for MBean
  • No special interfaces or class path restrictions
  • Shields developer from complexity of JMX API
  • Exposes attribute, constructors, operations, parameters, and notifications
  • Simplifies the creation of connector servers and connector clients
  • Support for exporting JMX timers

JmxBuilder is still relatively new and is currently at version 0.5. Vladamir anticipates releasing a 1.0 version later in 2009 after adding features such as the ability to query beans, Spring JMX Annotations and monitoring support.

One thing Vladamir pointed out is Groovy already has the GroovyMBean which allows you to query and interact with MBeans today.

Rate this Article

Adoption Stage

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Tell us what you think

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

JmxBuilder included in Groovy 1.6-RC-1 by Guillaume Laforge

The JmxBuilder was too good to be left alone: the Groovy development team decided to team up with Vladimir to get JmxBuilder integrated in the just recently released Groovy 1.6-RC-1.

Great job, Vladimir!

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

1 Discuss

Login to InfoQ to interact with what matters most to you.

Recover your password...


Follow your favorite topics and editors

Quick overview of most important highlights in the industry and on the site.


More signal, less noise

Build your own feed by choosing topics you want to read about and editors you want to hear from.


Stay up-to-date

Set up your notifications and don't miss out on content that matters to you