I prefer to split them up.
Usually it make it easier to maintain and test, or to make changes
afterwards.

Nice thing with Camel is that you can also combine your 2 options.
Simplified example:

from("jetty:http://localhost:8081/test) 
.choice()
.when("...")
.to("jetty:http://localhost:8081/test/install)
.when("...")
.to("jetty:http://localhost:8081/test/registration)

from("jetty:http://localhost:8081/test/install";).process(..) 
from("jetty:http://localhost:8081/test/registration";).process(..) 






--
View this message in context: 
http://camel.465427.n5.nabble.com/Pros-and-cons-of-using-choice-as-opposed-to-having-separate-endpoints-tp5746510p5746557.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to