Example usage for javax.management MBeanRegistrationException printStackTrace

List of usage examples for javax.management MBeanRegistrationException printStackTrace

Introduction

In this page you can find the example usage for javax.management MBeanRegistrationException printStackTrace.

Prototype

public void printStackTrace() 

Source Link

Document

Prints this throwable and its backtrace to the standard error stream.

Usage

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());
}