Hello !

I would like to retrieve date of the consumers and the producers of my Camel 
context (org.apache.camel.management.mbean.ManagedConsumer and 
org.apache.camel.management.mbean.ManagedProducer)

As I'm using Camel 3.6.0, I used this:
getContext().getExtension(ManagedCamelContext.class)

>From there, I can retrieve ManagedProcessor, ManagedRoute, and many other 
>functions.
But I can't find a way to retrieve the consumers and the producers info.

I managed however, to retrieve consumers and producers info using directly 
queries to request the MBean server (like proposed here: 
https://stackoverflow.com/questions/22717446/get-information-about-all-camelcontext-defined-in-a-vm),
 but I feel it's a bit over complicated.

Is there a better way to get access to those managed beans ?

Thanks in advance !

Regards,
Nicolas

Reply via email to