camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Pros and cons of using choice as opposed to having separate endpoints
Date Tue, 28 Jan 2014 18:54:18 GMT
Hi

You can also use "dynamic to" with the recipient list like the CXF
tomcat example
http://camel.apache.org/cxf-tomcat-example.html

Then you dont need all the content based router with the when predicates.



On Tue, Jan 28, 2014 at 7:10 PM, John Kramer
<jakramer@ascenditsolutions.com> wrote:
> The hybrid approach seems attractive.
>
> Assuming your routes are running in the same camel context or jvm, would
> using seda or vm be preferred over using jetty?
>
> E.g.:
>
> from("jetty:http://localhost:8081/test)
> .choice()
> .when("...").to("seda:install"l)
> .otherwise().to("seda:registration")
>
> from("seda:install").process(..)
> from("seda: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-tp5746510p5746562.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
Make your Camel applications look hawt, try: http://hawt.io

Mime
View raw message