This content has been marked as final.
Show 2 replies
-
1. Re: MBean deployment error
adrian.brock Nov 5, 2002 10:47 PM (in response to mirza_mohsin_beg)public class MyInstanceService
extends org.jboss.system.ServiceMBeanSupport
implements MyInstanceServiceMBean
{
public String getMyAttr() {return "meow";}
public void setMyAttr(String attr) {}
public void startService() throws Exception {}
public void stopService() throws Exception {}
}
public interface MyInstanceServiceMBean
extends org.jboss.system.Service
{
String getMyAttr();
void setMyAttr(String attr);
}
MyInstanceServiceMBean defines your management interface.
Regards,
Adrian -
2. Re: MBean deployment error
mirza_mohsin_beg Nov 5, 2002 11:08 PM (in response to mirza_mohsin_beg)Hi,
Thanks for your help. I did have all those interfaces defined in my real example. The interface class has to be the same name as the bean+"MBean". I would have never guessed.
Thanks a million!
-Mohsin