I think you can just throw out the authentication failure exception and you can 
use the error handler to setup some kind of reject exception for the response 
to use.

--  
Willem Jiang

Red Hat, Inc.
Web: http://www.redhat.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.iteye.com (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem



On April 16, 2015 at 4:15:38 PM, Cristiano Costantini 
(cristiano.costant...@gmail.com) wrote:
> Hello,
>  
> I was searching to implement a "Pipes and Filter" EIP that, as the picture
> illustrated in http://camel.apache.org/pipes-and-filters.html, it has a
> step that "Authenticates" the exchange.
>  
> I have not however figured out how to manage a failed authentication:
> how do I best implement the rejection of the exchange to be further
> processed by subsequents endpoints?
>  
> I'm confused as my exchange is an InOut, so I cannot simply abort the
> processing, I need to send back some output (either an empty response or
> error code) to the initial from endpoint...
>  
> Any suggestion?
> thanks,
> Cristiano
>  

Reply via email to