List of usage examples for javax.management MBeanRegistrationException printStackTrace
public void printStackTrace()
From source file:org.mc4j.ems.impl.jmx.connection.bean.DMBean.java
public void unregister() { try {/*from w ww. jav a 2 s .c om*/ connectionProvider.getMBeanServer().unregisterMBean(getObjectName()); } catch (MBeanRegistrationException e) { e.printStackTrace(); } catch (InstanceNotFoundException e) { throw new EmsBeanNotFoundException( "Could not unregister bean, instance not found [" + getObjectName().getCanonicalName() + "]", e); } // TODO: Shouldn't we remove the MBean from our map too? //connectionProvider.getExistingConnection().removeMBean(getObjectName().toString()); }