You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by sakchakravarthi <aj...@gmail.com> on 2014/06/20 08:56:13 UTC
Dynamic camel routing
Hi
I am new to camel. I have a scenario i need to make ready routes which can
consume from file or webservce. Now I configured two routes. But finally
only one will be in use so when user provide config details of file as
webservice details were not provided it is giving errors. So Is there any
way that when user say file only file route will be up and it ignore web
service route, Vice versa
--
View this message in context: http://camel.465427.n5.nabble.com/Dynamic-camel-routing-tp5752613.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Dynamic camel routing
Posted by sakchakravarthi <aj...@gmail.com>.
Can I get example or links please. I could able to get clear picture on
camel routing policy. Please share me link where I can get good explanation
and example for writing customized policy.
--
View this message in context: http://camel.465427.n5.nabble.com/RoutePolicy-camel-routing-tp5752613p5752929.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Dynamic camel routing
Posted by "kraythe ." <kr...@gmail.com>.
There are some out of the box route policies with Camel but keep in mind
that you can always implement your own. If you have a specific use case
that requires special logic then implement your own route policy.
*Robert Simmons Jr. MSc. - Lead Java Architect @ EA*
*Author of: Maintainable Java (Kindle
<http://www.amazon.com/Maintainable-Java-Robert-Simmons-Jr-ebook/dp/B00AKHI69K>)(iTunes
<https://itunes.apple.com/us/book/maintainable-java/id585666097?mt=11>)*
*LinkedIn: **http://www.linkedin.com/pub/robert-simmons/40/852/a39
<http://www.linkedin.com/pub/robert-simmons/40/852/a39>*
On Fri, Jun 20, 2014 at 3:38 AM, sakchakravarthi <
ajit.kalyan.chakravarthi@gmail.com> wrote:
> Yes
> Can I know how to configure route policy based a property file property.
>
> I mean is it possible to configure a route policy startup. Ie. Route should
> start when user configured as route.enpoint = file. then only file route
> should start.
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/RoutePolicy-camel-routing-tp5752613p5752620.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
Re: Dynamic camel routing
Posted by sakchakravarthi <aj...@gmail.com>.
Yes
Can I know how to configure route policy based a property file property.
I mean is it possible to configure a route policy startup. Ie. Route should
start when user configured as route.enpoint = file. then only file route
should start.
--
View this message in context: http://camel.465427.n5.nabble.com/RoutePolicy-camel-routing-tp5752613p5752620.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Dynamic camel routing
Posted by Claus Ibsen <cl...@gmail.com>.
Hi
Take a look at route policy, and autoStartup
On Fri, Jun 20, 2014 at 8:56 AM, sakchakravarthi
<aj...@gmail.com> wrote:
> Hi
> I am new to camel. I have a scenario i need to make ready routes which can
> consume from file or webservce. Now I configured two routes. But finally
> only one will be in use so when user provide config details of file as
> webservice details were not provided it is giving errors. So Is there any
> way that when user say file only file route will be up and it ignore web
> service route, Vice versa
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Dynamic-camel-routing-tp5752613.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
hawtio: http://hawt.io/
fabric8: http://fabric8.io/