Hey all,
  I'm still climbing the learning curve on Camel terminology, etc.  It makes
sense to me that I start defining a route by calling RouteBuilder.from and
get a RouteDefinition which I can then use to continue to define my route. 
What makes less sense to me is that RouteDefinition itself has "from"
methods on it so I can do something like:

myRouteDefinition = routeBuilder.from("direct:foo");
myRouteDefinition.to("direct:doSomething");

myRouteDefinition.from("direct:buzz");  
myRouteDefinition.to("direct:doSomethingElse");

Conceptually, I think of a RouteDefinition as defining one route, but in the
example above we can use the same RouteDefinition to essentially define two
completely unrelated routes from what I can tell.  What's the use case for
this vs using the routeBuilder again to create a completely new
RouteDefinition for the "buzz" route. i.e. -
routeBuilder.from("direct:buzz")


I have been loving Camel so far.  Thanks in advance for helping clear up
this confusion for me so I can understand more about it.

-e



--
View this message in context: 
http://camel.465427.n5.nabble.com/Why-does-RouteDefinition-have-from-methods-tp5756370.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to