You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2022/12/02 14:18:35 UTC

[GitHub] [camel-k] MotaOcimar commented on issue #3869: Saga example failing with version > 1.10

MotaOcimar commented on issue #3869:
URL: https://github.com/apache/camel-k/issues/3869#issuecomment-1335300452

   Oh, I didn't say it, but before that I faced another error, related to Camel 3.x syntax.
   
   The Saga example, use embedded routes directly into REST services. But as explained in the Apache Camel 3.x Upgrade Guide, [Camel have removed support for embedded routes](https://camel.apache.org/manual/camel-3x-upgrade-guide-3_16.html#_removed_support_for_embedded_routes).
   
   > For example
   > ```java
   > rest("/users")
   >   .get("/{id}")
   >   .route().
   >     // embedded route here
   > ```
   > Should now be:
   > ```java
   > rest("/users")
   >   .get("/{id}")
   >   .to("direct:users-by-id");
   > 
   > from("direct:users-by-id")
   >     // embedded route here
   > ```
   
   Perhaps you are getting this error.
   The fix is really simple, as exemplified above.
   But after fixing that error I get the other one which led me to open this issue.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org