-
1. Re: Migration: 3.2.0 to 4.2.2 (org.jboss.jmx.adaptor.rmi.RMI
csaldanh Jun 17, 2008 11:00 AM (in response to pdeshmuk)what does unregisterSchedule(false); do?
According to my understanding, createMBean would create a new instance of the MBean and register it. So you might need to call a particular constructor that does the unregisterSchedule(false); in the new instance of the MBean. -
2. Re: Migration: 3.2.0 to 4.2.2 (org.jboss.jmx.adaptor.rmi.RMI
pdeshmuk Jun 17, 2008 11:13 AM (in response to pdeshmuk)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. -
3. Re: Migration: 3.2.0 to 4.2.2 (org.jboss.jmx.adaptor.rmi.RMI
csaldanh Jun 17, 2008 11:20 AM (in response to pdeshmuk)Oh. Then the createMBean(..., ...) should be fine.