You could setup your error response and then use .stop() in the DSL, or
mark the exchange to stop from Java code. e.g.


        // mark the exchange to stop continue routing
        exchange.setProperty(Exchange.ROUTE_STOP, Boolean.TRUE);


On Sun, Jul 17, 2016 at 10:08 PM, knew...@gmail.com <kevin.new...@gmail.com>
wrote:

> Thank you for the reply.
>
> The general idea is to not forward the message along to the endpoint server
> if the credential check fails.
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Filtering-or-short-circuit-a-route-tp5785185p5785197.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

Reply via email to