The integration between StandardMbean and Mlet Service is well demonstrated in jmx but has anyone found a way to integrate the ModelMBean with Mlet service?
The code for loading of mbean in Mlet.java
Object o = loadSerializedObject(codebase,serName);
if (name == null) {
server.registerMBean(o, null);
} else {
server.registerMBean(o, new ObjectName(name));
}
However, the ModelMbean is created differently , we need to call the methods
RequiredModelMBean modelmbean = new RequiredModelMBean( myinfo );
modelmbean.setManagedResource( mypojo, "objectReference");
mbs.registerMBean(modelmbean, oname);
Anyone who has integrated the Mlet service with Modelmbeans?