users@glassfish.java.net

Re: How to get Notification from Standard MBean GlobalRequestProcessor

From: <glassfish_at_javadesktop.org>
Date: Mon, 10 Nov 2008 20:35:29 PST

The self management framework couples an event and an action together so that when an event occurs the action is triggered automatically. As per your requirement, if the GlobalRequestProcessor is an MBean, any attribute of that can be got by configuring the attribute name in the rule. For example, a monitor type of rule could take the observedAttribute property of the rule as responseTime or anything else and the action mbean that implements the NotificationListener interface would display the information that you want by collecting them from appropriate mbeans. A counter monitor could be used for the same.

HTH
Shalini.
[Message sent by forum member 'sm157516' (sm157516)]

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