deal with mbeans being already unregistered gracefully

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@384185 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
James Strachan 2006-03-08 11:44:06 +00:00
parent f692aa3781
commit d47ce01a85
1 changed files with 3 additions and 0 deletions

View File

@ -112,6 +112,9 @@ public class ManagedRegionBroker extends RegionBroker{
try { try {
mbeanServer.unregisterMBean(name); mbeanServer.unregisterMBean(name);
} }
catch (InstanceNotFoundException e) {
log.warn("The MBean: " + name + " is no longer registered with JMX");
}
catch (Exception e) { catch (Exception e) {
stopper.onException(this, e); stopper.onException(this, e);
} }