...
Karaf can be set up by:
- downloading Karaf 4.x or later from an apache.org mirror
- running ./bin/karaf to enter the shell
installing required bundles (n.b. the following commands correspond to Karaf 3.x. For Karaf 2.x installations, please refer to the Karaf 2.x documentation):
Code Block language bash title Karaf console $> feature:repo-add camel 2.1416.02 $> feature:repo-add activemq 5.1011.01 $> feature:install camel $> feature:install activemq-camel # display available camel features $> feature:list | grep camel # install camel features, as needed $> feature:install camel-http4 # install fcrepo-camel (as of v4.14.0) $> feature:repo-add mvn:org.fcrepo.camel/fcrepo-camel/4.14.0/xml/features $> feature:install fcrepo-camel
setting up a service wrapper (so that karaf runs as a system-level service)
Code Block language bash title Karaf console $> feature:install wrapper $> wrapper:install
- following the directions provided by this command
Now, routes can be deployed (and re-deployed) by simply copying JAR files or XML documents to $KARAF_HOME/deploy
.
Fedora Camel Toolbox
The Fedora project distributes camel routes for several common repository tasks as part of the fcrepo-camel-toolbox project, for use with Karaf version 4.x. Detailed installation instructions are available as part of the project README and follow this pattern:
Code Block | ||||
---|---|---|---|---|
| ||||
# install fcrepo-camel-toolbox (as of v4.1.0) $> feature:repo-add mvn:org.fcrepo.camel/fcrepo-camel-toolbox/4.1.0/xml/features # install fcrepo-camel-toolbox (as of v4.5.0) $> feature:repo-add mvn:org.fcrepo.camel/toolbox-features/4.5.0/xml/features # display available features $> feature:list | grep fcrepo # install feature $> feature:install fcrepo-indexing-triplestore |
Monitoring Your Camel Routes
...