tree: af1e8392d9f7f72a5f71ebe2ddc0ba5ddb92e124 [path history] [tgz]
  1. Flight.java
  2. lra-coordinator-kub.yaml
  3. lra-coordinator.yaml
  4. Payment.java
  5. Readme.md
  6. Saga.java
  7. Train.java
examples/saga/Readme.md

Saga example

This example is from camel-saga-quickstart and could work with the camel-k.

  • Start the lra-coordinator by using the openshift
oc create -f lra-coordinator.yaml
  • Or start the lra-coordinator by using the kubernetes
kubectl create -f lra-coordiantor-kub.yaml
  • Start the three demo services
kamel run -t container.service-port=8080 --dependency=camel-rest --dependency=camel-undertow --dependency=camel-lra examples/saga/Flight.java
kamel run -t container.service-port=8080 --dependency=camel-rest --dependency=camel-undertow --dependency=camel-lra examples/saga/Train.java
kamel run -t container.service-port=8080 --dependency=camel-rest --dependency=camel-undertow --dependency=camel-lra examples/saga/Payment.java
  • Start the saga application
kamel run -t container.service-port=8080 --dependency=camel-rest --dependency=camel-undertow --dependency=camel-lra examples/saga/Saga.java

Then you can use kamel log saga to check the output of the transactions.