camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dermoritz <>
Subject getMBeanServer() returns null on DefaultCamelContext - why?
Date Thu, 09 Apr 2015 09:15:01 GMT
I want to register an own MBean (dynamic MBean) in my Camel application. For
this i use

The problem is that "getMBeanServer()" returns null. Javadoc says: "Notice:
If the JMXEnabled configuration is not set to true, this method will return

But i am quite sure that jmx is enable - i am using it all the time.

My program flow is as follow:

- creating context -> new DefaultCamelContext (i use Guice and bound
DefaultCamelContext to CamelContext)
- adding a routbuilder to context
- registering my dynamic mbean
- starting the context (call of

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message