Permalink
Browse files

JAVA-641: Updated exception error message for JMX registration to poi…

…nt people to MongoOptions.alwaysUseMBeans property
  • Loading branch information...
1 parent 8d0e704 commit 320b82dc497c605bae6328e51c97b11accad0551 @jyemin jyemin committed Oct 22, 2012
Showing with 5 additions and 2 deletions.
  1. +5 −2 src/main/com/mongodb/DBPortPool.java
@@ -90,9 +90,12 @@ DBPortPool get( ServerAddress addr ){
}
MBeanServerFactory.getMBeanServer().registerMBean(p, on);
} catch (JMException e) {
- Bytes.LOGGER.log(Level.WARNING, "jmx registration error: " + e + " continuing...");
+ Bytes.LOGGER.log(Level.WARNING, "JMX registration error: " + e +
+ "\nConsider setting com.mongodb.MongoOptions.alwaysUseMBeans property to true." +
+ "\nContinuing...");
} catch (java.security.AccessControlException e) {
- Bytes.LOGGER.log(Level.WARNING, "jmx registration error: " + e + " continuing...");
+ Bytes.LOGGER.log(Level.WARNING, "JMX registration error: " + e +
+ "\nContinuing...");
}
}

0 comments on commit 320b82d

Please sign in to comment.