Fork me on GitHub

Camel Context Utility

org.onehippo.forge.camel.util.CamelContextUtils provides a way to invoke operations on a CamelContext in a transparent way.

CamelContextUtils doesn't depend on any other libraries except of JMX and Apache Camel Core libraries, so the utility class can be used almost anywhere to invoke an operation on a CamelContext.

For example, when you implement a custom workflow or custom scheduler component, you can use this utility class to dispatch the event handling to a Camel endpoint URI.

For an implementation example, please see the default Camel Repository Scheduler Job implementation: https://github.com/bloomreach-forge/camel-events-support/tree/master/src/main/java/org/onehippo/forge/camel/scheduling/DefaultCamelRepositoryJob.java .