camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: Camel 2.14-SNAPSHOT - Is interceptFrom() broken for the Rest dsl?
Date Mon, 15 Sep 2014 13:14:04 GMT

Are you use the rest dsl with embedded route or just a single short-hand to?

There could be a situation where the intercept from is applied to
early, and the rest-dsl routes gets added as route models after that

Though I would have to check the source code to sure. But sounds like
we could improve this so interceptors work on the rest dsl routes too.

Feel free to log a JIRA ticket

On Mon, Sep 15, 2014 at 3:00 PM, panzerhans <> wrote:
> I am struggelig to get interceptFrom() working for the rest-DSL.
> My project only has one Rest DSL route.
> If I add interceptFrom().stop() in the beginning of a my RouteDefinition
> file, no stop of that route occurs. In addition, if I add the
> interceptFrom().stop() after my rest dsl route is defined, no exception is
> thrown (as it should be).
> However, if I add another regular DSL, like:
> from("timer://foo?fixedRate=true&period=10s").log("Hello world")
> The interceptor is fired (and Exception is thrown if I move the interceptor
> below the route). Am I missing something?
> --
> View this message in context:
> Sent from the Camel - Users mailing list archive at

Claus Ibsen
Red Hat, Inc.
Twitter: davsclaus
Author of Camel in Action:

View raw message