Claus Ibsen
Jul 20, 2017 · 1 min read

The code from the Spring Boot REST controller that calls the Camel route can be written a bit simpler with the producerTemplate where you can call and get the response in a single code line.

For example as shown in this little example: https://github.com/camelinaction/camelinaction2/tree/master/chapter7/springboot-rest-camel which is from my book Camel in Action 2nd edition which has a lot of documentation that you say you lack.

There is also a bit of Spring Boot and Camel examples at Apache Camel at: https://github.com/apache/camel/tree/master/examples#examples

)

    Claus Ibsen

    Written by

    Works for Red Hat on the open source integration project Apache Camel. Author of Camel in Action books. Java Champion. ASF member. International speaker.