Ok I guess I'm a little SLOW
The interface needs to be named : blahMBean
The implementation MUST be named : blah
Now it works.
Sorry for taking up so much space in this forum :-)
For anyone who iis interested here is the working code.
public interface EmailConfigFormMonMBean {
public String getHewwwo();
}
public class EmailConfigFormMon implements EmailConfigFormMonMBean {
public String getHewwwo() {
return "hewwwwo";
}
}
List srvrlist = MBeanServerFactory.findMBeanServer(null);
MBeanServer server = (MBeanServer)srvrlist.iterator().next();
ObjectName name = new ObjectName("user:name=EmailConfigFormBlahImpl");
EmailConfigFormMon emb = new EmailConfigFormMon();
try {
//
server.registerMBean(emb, name);
} catch (InstanceAlreadyExistsException e) {
// TODO Auto-generated catch block
e.printStackTrace();
throw e;
} catch (MBeanRegistrationException e) {
// TODO Auto-generated catch block
e.printStackTrace();
throw e;
} catch (NotCompliantMBeanException e) {
// TODO Auto-generated catch block
e.printStackTrace();
throw e;
}
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3857233#3857233
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3857233
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user