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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.