This Confluence has been LDAP enabled, if you are an ASF Committer, please use your LDAP Credentials to login. Any problems file an INFRA jira ticket please.

Child pages
  • JBI Service Unit Archetype

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

JBI Service Unit Archetype

If you want to spin up your own project to use Camel to perform some smart routing inside your JBI based ESB you can use the Maven archtetype to get up to speed quickly.

Just type the following into a console...

Code Block
mvn archetype:create                           \
  -DarchetypeGroupId=org.apache.camel          \
  -DarchetypeArtifactId=camel-jbi-service-unit \
  -DarchetypeVersion=1.0-SNAPSHOT              \
  -DgroupId=myGroupId                          \
  -DartifactId=myArtifactId   

This will create a maven project which can be run immediately via the Camel Maven Plugin as follows

Code Block
cd myArtifactId
mvn install

The configuration file is in src/main/resources/camel-context.xml.

The routing rules lives at src/main/java/myGroupId/MyRouteBuilder.java