This is a series of examples to show you how Apache Camel works.
- [Module]
Spring Boot
- [Module]
Apache Camel
- [Library for auto-generating getters, setters, constructors and others]
Lombok
- [Database]
H2
-
Start
SpringBootApacheCamelApplication
: It will initiates aH2
database with atbl_user
table filled with four mock users. There is a columnstatus
which is assignedNEW
for all the mock data. -
Go to
http://localhost:8080/throw
: It will starts a camel route which tries to change the first two users'status
toIN-C
and the second two users'status
toIN-D
. In the middle of this process, we throw anIllegalArgumentException
and we expect that camel rollbacks the transactions and all the records remains unchanged toNEW
. -
Go to
http://localhost:8080/log
to log the users on the console and verify the rollback mechanism. -
These is a lot of other test which have been provided as main classes. You can start them simply as java applications. For example
CamelInMemorySagaExample
is a sample that shows howSaga
EIP works.