| RouteBuilderComponent |
iPOJO component that creates a CAMEL context with:
CAROL classes accessed, so that the BND tool automatically adds
CAROL-related classes to the bundle's Import-Package
declarations
All CAMEL XML registry files and XML registry property files read from
$JONAS_BASE/conf and injected into the CAMEL context
The local JNDI registry added to the CAMEL context's registry, to ease
lookups with the jdbc component for instance
The JMS component bound on the JNDI registry
The bundle's ClassLoader positioned on the current thread, to
avoid any class loading issues with dynamic components such as JNDI, JMS or
CXF
The CAMEL trace component logging into the logger named
TRACE_LOGGER_NAME
If traceDestination is not null, traces
also sending a message to that endpoint
In order to use it:
Override the configure() method, making
sure you first call super.configure() in your implementation
Make sure the org.ow2.jonas.camel.component package is in
your bundle's Private-Package list
Make sure the metadata.xml file has the required
definitions: <ipojo ...
... |