Recently i've been having an issue on application startup, using MongoDB 2.10.1, with my JavaEE application running on Jboss 4.2.3GA.
AM com.mongodb.DBPortPool$Holder get
WARNING: JMX registration error: com.mongodb.util.management.JMException:
javax.management.NotCompliantMBeanException: Class does not expose a management
Class does not expose a management interface: java.lang.Object
Consider setting com.mongodb.MongoOptions.alwaysUseMBeans property to true.
Continuing...
My application handles database queries using Stateless Session Beans, from what i've seen, there is a MongoOptions setting to alwaysUseMBeans for Java6 or higher users, while running on Jboss. However, while attempting to set alwaysUseMBeans to true via the Java Driver, there is no such setter available.
Has anyone else had a similar problem, or is there a solution i'm missing?