Re: I cant throw the correct HTTP status codes from camel.

2014-10-30 Thread Dewitte P-Alban
Hi, Did you tried with exchange.getOut().setHeader( Exchange.HTTP_RESPONSE_CODE, new Integer(522)); Best regard Pierre-Alban DEWITTE @__pad__ On Wed, Oct 29, 2014 at 5:01 PM, Henryk Konsek hekon...@gmail.com wrote: Hi, from(direct:channel2).onException(Exception.class).process(new

Re: I cant throw the correct HTTP status codes from camel.

2014-10-30 Thread Frankiboy
.n5.nabble.com/I-cant-throw-the-correct-HTTP-status-codes-from-camel-tp5758282p5758335.html Sent from the Camel - Users mailing list archive at Nabble.com.

I cant throw the correct HTTP status codes from camel.

2014-10-29 Thread Frankiboy
I cant throw the correct HTTP status codes from camel. I have a route like this: from(direct:channel2).onException(Exception.class).process(new LogError(HubConstants.CHANNEL2.getValue())).end().recipientList() .method(Util.class, getEndpoint); The endpoint is down, and i

Re: I cant throw the correct HTTP status codes from camel.

2014-10-29 Thread Henryk Konsek
Hi, from(direct:channel2).onException(Exception.class).process(new LogError(HubConstants.CHANNEL2.getValue())).end().recipientList() .method(Util.class, getEndpoint); Can you share the consumer part of the route with us? :) Cheers. -- Henryk Konsek