I'm running apache-camel within a apache-karaf container.
Now I recognized the problem, that the route-list command failed, with
the following scenario:
I have route configured where bundle1 reads the data from a file and
forwards the content to a route of bundle 2, using a VmEndpoint.
After startup the route-list command works fine, but as soon as an
incoming message has been processed, the command failed with a
I think the problem is located in the DefaultManagementObjectNameStrategy.
Here I can see, the in method getObjectNameForRoute(..)
The camelContext is picked from the Endpoint.
Is there a special reason, why it is not read from the provided route directly?
As in my test-case the context of the endpoint and route differ, this
seems to be the reason, why the JMX-object could not be resolved.