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

pdeshmuk do-not-reply at jboss.com
Tue Jun 17 11:13:37 EDT 2008


Thanks for your thoughts.

The unregisterSchedule() method unregisters the scheduler if it has already been registered:

public void unregisterSchedule(boolean throwException) throws SchedulerException{
    try{
      server.unregisterMBean(scheduleName);
    }catch(Exception e){
// we might want to do it just in case the scheduler is registered already and don't care if not
    	if (throwException) 
    	  throw new SchedulerException(e.getMessage());
    }
  }

I don't think we want to call unregisterSchedule() on the new instance of the MBean after its creation and registration.


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

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



More information about the jboss-user mailing list