diff --git a/examples/rest/routes-rest.js b/examples/rest/routes-rest.js index 264af31b64..3e39238ae2 100644 --- a/examples/rest/routes-rest.js +++ b/examples/rest/routes-rest.js @@ -23,5 +23,7 @@ rest('/say/hello') .produces("text/plain") .get() - .route() - .transform().constant("Hello World"); + .to('direct:sayHello') + +from('direct:sayHello') + .transform().constant("Hello World"); diff --git a/examples/saga/Flight.java b/examples/saga/Flight.java index 5aacbd92d4..51418301b2 100644 --- a/examples/saga/Flight.java +++ b/examples/saga/Flight.java @@ -31,7 +31,9 @@ public void configure() throws Exception { rest("/api").post("/flight/buy") .param().type(RestParamType.header).name("id").required(true).endParam() - .route() + .to("direct:buy"); + + from("direct:buy") .saga() .propagation(SagaPropagation.MANDATORY) .option("id", header("id")) diff --git a/examples/saga/Payment.java b/examples/saga/Payment.java index 7eade73b0e..0367d2dc7c 100644 --- a/examples/saga/Payment.java +++ b/examples/saga/Payment.java @@ -31,7 +31,9 @@ public void configure() throws Exception { rest("/api/").post("/pay") .param().type(RestParamType.query).name("type").required(true).endParam() .param().type(RestParamType.header).name("id").required(true).endParam() - .route() + .to("direct:pay"); + + from("direct:pay") .saga() .propagation(SagaPropagation.MANDATORY) .option("id", header("id")) diff --git a/examples/saga/Train.java b/examples/saga/Train.java index b46704d05b..35aa5ec940 100644 --- a/examples/saga/Train.java +++ b/examples/saga/Train.java @@ -31,7 +31,9 @@ public void configure() throws Exception { rest("/api/").post("/train/buy/seat") .param().type(RestParamType.header).name("id").required(true).endParam() - .route() + .to("direct:buySeat"); + + from("direct:buySeat") .saga() .propagation(SagaPropagation.SUPPORTS) .option("id", header("id")) diff --git a/examples/saga/lra-coordinator.yaml b/examples/saga/lra-coordinator.yaml index ef28c9fcb0..68a31a2991 100644 --- a/examples/saga/lra-coordinator.yaml +++ b/examples/saga/lra-coordinator.yaml @@ -79,7 +79,7 @@ spec: scheme: HTTP initialDelaySeconds: 180 name: lra-coordinator - image: docker.io/jbosstm/lra-coordinator:5.9.8.Final + image: quay.io/jbosstm/lra-coordinator:latest ports: - containerPort: 8080 protocol: TCP