uttam
uttam

Reputation: 455

Enable JMX for CamelTestSupport

Can we register Managed Routes,Managed Processors and other ManagedBeans of the camelcontext from the CamlTestSupport class.So that we can see the JMX statistics of the routes and processors of camelTestSupport's camel context.If we can register,how to do it?

Upvotes: 0

Views: 508

Answers (1)

Claus Ibsen
Claus Ibsen

Reputation: 55525

Yes override the useJmx method and return true.

Then when jmx is enabled then Camel will enlist all those mbeans during testing.

There is a few unit tests we enable jmx when testing with blueprint here, you can take a look at

Upvotes: 1

Related Questions