But if you create the route at runtime via the Java DSL, you can catch the
Exception and handle it in the way you want, e.g. ignore it.

Best,
Christian

On Thu, May 3, 2012 at 9:41 AM, Claus Ibsen <claus.ib...@gmail.com> wrote:

> On Wed, May 2, 2012 at 5:21 PM, Ilger Gerda <il...@big.tuwien.ac.at>
> wrote:
> > Hi all,
> >
> > We have a number of ftp consumer routes that we start based on URLs read
> from our database.
> > If there's a typo in the URL (e.g. "ftp://localhost::1023";), the whole
> camelContext won't start.
> > We're using SpringCamelContext.
> >
> > These routes are not essential, we still want our application to start &
> camel provide all the other routes we defined.
> > Is there a way to ignore routes that throw exceptions upon
> creation/camel context start (have camel behave as if we never added them)?
> >
>
> You can configure the routes with autoStartup=false.
>
> But there is currently no option to say, well I dont care if a route
> cannot startup.
>
>
> > Thanks,
> > Gerda
>
>
>
> --
> Claus Ibsen
> -----------------
> CamelOne 2012 Conference, May 15-16, 2012: http://camelone.com
> FuseSource
> Email: cib...@fusesource.com
> Web: http://fusesource.com
> Twitter: davsclaus, fusenews
> Blog: http://davsclaus.blogspot.com/
> Author of Camel in Action: http://www.manning.com/ibsen/
>

Reply via email to