[jboss-user] [Management, JMX/JBoss] - Migration: 3.2.0 to 4.2.2 (org.jboss.jmx.adaptor.rmi.RMIAdap

pdeshmuk do-not-reply at jboss.com
Tue Jun 17 10:18:58 EDT 2008

We are currently migrating from JBoss 3.2.0 to 4.2.2 and the registerMBean() method from the org.jboss.jmx.adaptor.rmi.RMIAdaptor interface seems to have been removed (getting compile error on the method).

This is our current method to register the JBoss scheduler:

public void registerSchedule() throws SchedulerException {
    unregisterSchedule(false); // just in case
        try {
             server.registerMBean(this, scheduleName);
        } catch (Exception e) {
             throw new SchedulerException(e.getMessage(), e);

The registerMBean method has been removed from the RMIAdaptor interface and thus fails to compile:
      server.registerMBean(this, scheduleName);

We were wondering if this should be replaced by the createMBean method (from the javax.management.MBeanServerConnection super-interface of RMIAdaptor) as follows:

      server.createMBean(this.getClass().getName(), scheduleName);

Any thoughts will be greatly appreciated.


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4158714#4158714

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4158714

More information about the jboss-user mailing list