List of usage examples for org.springframework.jmx.export MBeanExporter setRegistrationPolicy
public void setRegistrationPolicy(RegistrationPolicy registrationPolicy)
From source file:io.kahu.hawaii.config.KahuConfig.java
@Bean public MBeanExporter mbeanExporter() throws ServerException { MBeanExporter mbeanExporter = new MBeanExporter(); mbeanExporter.setServer(jolokiaServer()); mbeanExporter.setRegistrationPolicy(RegistrationPolicy.IGNORE_EXISTING); Map<String, Object> beans = getMBeans(); mbeanExporter.setBeans(beans);//from w w w .ja v a2s . com return mbeanExporter; }