Skip to main content

A JMX MBean to visualize AWT events

Posted by emcmanus on December 29, 2005 at 1:34 AM PST

How would you go about using the JMX API to instrument AWT events? What would it gain you? My colleague Jean-François Denise answers in detail in his blog.

I like this example and have used it as a demo in a number of places, including the recent
JavaPolis conference
and this year's JavaOne. (If you were at my JavaOne talk, Jean-François was the mysterious figure driving the demo.) The idea is originally due to Tim Boudreau.

One of the main reasons I like this example is that it is different from the usual examples, which tend to be rather server-side and non-interactive. While those sorts of examples are legitimate and probably do represent the majority of uses of JMX technology, there's absolutely no reason why interactive applications can't also benefit from it. Plus it makes for a much more interesting demo!

Related Topics >>