List of usage examples for javax.management NotCompliantMBeanException getMessage
public String getMessage()
From source file:org.openadaptor.spring.SpringAdaptor.java
private static void attemptToRegisterBean(Object bean, MBeanServer mbeanServer, String beanName) { if (!(bean instanceof MBeanServer)) { try {/*from w w w . j av a2 s .c om*/ ObjectName name = new ObjectName("openadaptor:id=" + beanName); mbeanServer.registerMBean(bean, name); log.info("registered bean " + beanName); } catch (NotCompliantMBeanException e) { log.debug("bean " + beanName + " is not compliant : " + e.getMessage()); } catch (Exception e) { log.error("failed to register mbean " + beanName, e); } } }