Welcome to the Camel CDI samples which demonstrate how to use CDI with your Camel projects and how to deploy / run them into different containers in a portable way.
Each sample can be launched individually using the Main
class that is provided by Camel CDI (directly from the IDE or the java
command) or using the Camel, Exec or HawtIO Maven plugins.
The CDI implementation used to execute the samples can be explicitly defined, e.g.:
-
To use Weld SE as CDI implementation (the default):
$ mvn hawtio:camel -Pstandalone,weld
-
Or to use OpenWebBeans as CDI implementation:
$ mvn hawtio:camel -Pstandalone,owb
To run a sample using the Camel Maven plugin:
-
Compile the sample:
$ mvn clean compile
-
Run the Camel Maven plugin:
$ mvn camel:run
To run a sample using the Exec Maven plugin:
-
Compile the sample:
$ mvn clean compile
-
Run the Exec Maven plugin:
$ mvn exec:exec
To run a sample using the HawtIO Maven plugin:
-
Compile the sample:
$ mvn clean compile
-
Run the HawtIO Maven plugin:
$ mvn hawtio:camel