camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diether <diether.wu...@optis.be>
Subject Re: Pros and cons of using choice as opposed to having separate endpoints
Date Tue, 28 Jan 2014 15:53:21 GMT
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.

Mime
View raw message