Search

55.2. JBI Service Unit Archetype

download PDF

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...
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
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
Red Hat logoGithubRedditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2024 Red Hat, Inc.