A JMX MBean to visualize AWT events
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!