...
Available as of Camel 2.15.0
Info |
---|
Camel-scr bundle is not included in Apache Camel versions prior 2.15.0, but the artifact itself can be used with any Camel version since 2.12.0. |
org.apache.camel/camel-scr
bundle provides a base class, AbstractCamelRunner
, which manages a Camel context for you and a helper class, ScrHelper
, for using your SCR properties in unit tests. Camel-scr feature for Apache Karaf defines all features and bundles required for running Camel in SCR bundles.
...
This allows you to override parts of the configuration by prefixing properties with "unit.". For example, unit.from
overrides from
for the unit test.
Prefixes , as a whole, can be used to cover handle the differences between the runtime environments where your routes might run. Moving the unchanged bundle through development, testing and production environments is a typical use case.
...
Once the bundle has been built with mvn install
it's ready to be deployed. To deploy the project in bundle on Apache Karaf perform the following steps on Karaf command line:
...
Or you can change the configuration directly by editing property files in Karaf's etc
folder.
...