...
- the input sources (the two directories above) which could be any of the supported camel URIs
- how the activities relate to each other - namely the Correlation Identifier pattern
- the maixmum amount of time allowed from the time a purchase order is received when if an invoice is not received an error should be raised.
The there There is the also a spring configuration file in src/resources/META-INF/services/camel-context.xml which defines the JPA template EntityManagerFactory
and tells Camel to look in the org.apache.camel.example.bam package to find its routes.
...
To run the example we use the Camel Maven Plugin. For example from the source or binary distribution the following should work
Code Block |
---|
cd examples/camel-example-bam
mvn camel:run
|
If you prefer you can just run the Main directly using
Code Block |
---|
mvn compile exec:java
|
Failing that you can run the Main from inside your IDE if you prefer. Follow the Building instructions to create an Eclipse/IDEA project to import