users@glassfish.java.net

Add MBean's to Admin Console

From: <glassfish_at_javadesktop.org>
Date: Thu, 06 Aug 2009 04:30:02 PDT

Hi,

I'm using glassfish 2.1 and I have some questions that I hope you can help me out with,

1) I'd like to be able to monitor all or at least a specific OpenMQ queue from within the Admin Console. Using JConsole I can easily browse to com.sun.messaging.jms.server->Destination->Monitor->q->"my queue" for example and see all statistics. The broker is started automatically when I start the Glassfish domain.
2) Is it possible to deploy and instantiate a custom MBean to the Admin Console that has no default constructor?
3) Is it possible to automatically register a MBean (preferably using Spring) when you deploy an application (such as a web-application) so that it becomes visible in the Admin console? We have a spring-based web-app and it registers a custom MBean when it's loaded. From JConsole you get all the details from the MBean but we'd like to be able to see it from the Admin Console as well (without manually having the deploy it).

Thanks
[Message sent by forum member '77777777777' (77777777777)]

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