blob: 3b9c24ff8c4d1b16d6c4b599374947114c457179 [file] [log] [blame]
h2. Deploy as an OSGi bundle
Using an OSGi bundle to deploy your Camel routes allows you to use the Java or Scala DSL for defining your routes.
In this case, we will use a Blueprint XML file to start your Camel routs. To do so, the Blueprint XML files have to be included in the bundle inside the {{OSGI-INF/blueprint}} directory.
+ <bundle classes, incl. your RouteBuilder>
\- blueprint
\- camel-context.xml
As soon as the bundle becomes Active, the Blueprint extender will create the Blueprint container starting your Routes.
h3. Example: Referring to Java or Scala RouteBuilder classes
If your RouteBuilder classes have been defined in the {{org.apache.servicemix.manual.camel}} package, the file would look like this:
<?xml version="1.0" encoding="UTF-8"?>
<camelContext xmlns="">