How to programmatically start/stop a Camel route that is running under a different CamelContext?

Solution Verified - Updated -

Issue

The Camel ControlBus provides a simple solution to control the life cycle of Camel routes. However it assumes access to the CamelContext under which the routes are registered.

How can we programmatically control the life cycle of Camel routes that run under a different CamelContext (e.g. in different OSG bundles) but in the same JVM?

Environment

  • JBoss Fuse 6.2.1
  • JBoss Fuse 6.3

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content