users@glassfish.java.net

Re: Deploy a Trivial mbean

From: jsexton0 <jsexton0_at_gmail.com>
Date: Tue, 20 Oct 2009 13:28:43 -0700 (PDT)

After several tries, I unchecked the compress option in eclipse, and this
MBean deployed. It looks normal. However in the management rules area, the
"Action" drop down list is empty. What does an MBean need to be in order to
be available for use in a rule?

Thanks



jsexton0 wrote:
>
> I'm working on using an mbean to respond to an event. I'd like to get
> logged messages eventually. For now, I made an interface:
>
> public interface CustomActionMBean extends NotificationListener {
> }
>
> And a class:
>
> public class CustomAction implements CustomActionMBean {
> public void handleNotification(Notification arg0, Object arg1) {
> }
> }
>
> I jar them up and try to use the admin console to deploy. It fails saying
> the class does not follow the Standard MBean conventions. What are these
> conventions other than the class name being the same as the interface name
> sans "MBean"?
>
> Thanks
>

-- 
View this message in context: http://www.nabble.com/Deploy-a-Trivial-mbean-tp25980380p25981984.html
Sent from the java.net - glassfish users mailing list archive at Nabble.com.