Details
-
Wish
-
Status: Resolved
-
Trivial
-
Resolution: Fixed
-
None
-
None
-
None
-
Unknown
Description
Hey there,
I'm in the process of piecing together a Camel application using learnings from your Spring boot examples. I already have a demo application which simply leaves the CamelContext open via Thread.sleep, so my plan was to add the spring-boot dependencies and implement a proper Service. However, I'm currently unsure about the purpose of two dependencies: spring-boot vs. camel-spring-boot-starter.
The Camel documentation regarding spring-boot only ever mentions including the camel-spring-boot-starter dependency, however all of the linked examples rely on a root project which uses the spring-boot project as its parent.
This leads me to the following questions, which I hope you can clarify for me:
- What is the role of spring-boot vs. camel-spring-boot-starter?
- If I want to set up a Maven project using these components would I use spring-boot as the parent and include camel-spring-boot-starter as a dependency? (as well as all the other camel dependencies I'd need to get the project running of course)
- There often seem to be two versions of the "same" dependency: A default one and a "...-starter" one (e.g. camel-jackson and camel-jackson-starter). In a Camel-Spring-Boot application would I only ever use the '...-starter' variants, or do these serve a different purpose?
I hope my questions are clear and you can clarify a few things for me. Thank you again for your help!
Kind Regards