users@glassfish.java.net

Re: Glassfish and JMX

From: <glassfish_at_javadesktop.org>
Date: Mon, 14 Sep 2009 13:22:16 PDT

Actually, you have reiterated the need for custom MBeans per application. This is where Java EE is still rather "weak". We should have incorporated the application-scoped MBeans, but we didn't.

An interesting framework is Gmbal written by Ken Cavanaugh (http://kenai.com/projects/gmbal/) which might provide some interesting options in that it registers MBeans of interest to you.

Custom MBeans are a different beast ;). They were meant for providing persistence of MBean attributes, which is a useful feature in its own right. The "problem" with them however is that they are "global" like you have found out.

What we need is annotations that help define MBeans for an existing application. That's the gap that gmbal seems to seal. Take a look.

Regards,
Kedar,
http://wiki.glassfish.java.net/attach/CustomMBeans/custom-mbeans-design-document.html
[Message sent by forum member 'km' (kedar.mhaswade_at_sun.com)]

http://forums.java.net/jive/thread.jspa?messageID=363943