I (still!) have problems understanding what I need to do when creating a Camel route. My problem is that I dont understand what happens 'under the hood' of Camel.
When I follow the tutorials they typically create a SU using the maven archetypes, then change the MyRouteBuilder to configure a route in Java DSL. But where are the components used in the route created? I would expect to see a CamelContext being created somewhere and addComponent being called for each component to be used in the route. Does this happen automatically under the hood of Camel depending on which components I use in my route defined in MyRouteBuilder? If yes, why does some examples (such as the loanBroker example) create the context and components explicitly? If no, where do I add the creation of context and components? In a main function of the MyRouteBuilder (don't expect this to be the case because then the main function would likely have been autogenerated when using the archetype)? -- View this message in context: http://www.nabble.com/Where-are-the-Camel-component-instance-created-when-using-MyRouteBuilder--tp20619487s22882p20619487.html Sent from the Camel - Users mailing list archive at Nabble.com.
