camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gert Vanthienen <gert.vanthie...@skynet.be>
Subject Re: How to catch errors locally on the path
Date Fri, 11 Jul 2008 14:03:02 GMT
Pratibha,

Could you try replacing the second setHeader() with setOutHeader() to 
set the header on the 'out' message before it is sent along to the 
PortalService?

Regards,

Gert

pratibhaG wrote:
> When I do this:
> exception(java.net.SocketException.class)
>    
> .maximumRedeliveries(2).useExponentialBackOff().initialRedeliveryDelay(30000).backOffMultiplier(2.0)
>    
> .to("jbi:service:http://servicemix.in2m.com/samples/http/bean15Service");
>
>     from("jbi:service:http://servicemix.in2m.com/samples/http/jmsConsumer")
>     .setHeader("path", constant("dir"))
>        
> .to("jbi:service:http://servicemix.in2m.com/samples/http/MyProviderService?mep=in-out")
>     .setHeader("portal", constant("portal"))
>        
> .to("jbi:service:http://servicemix.in2m.com/samples/http/PortalService?mep=in-out");

>
> The flow is like this:
> 1)message <request>hhh</request> goes to providerservice
> 2)provider service returns the <response>kkk</response> message
> 3)As portal service service is down, message is sent to bean15 service. here
> the message is <response>kkk</response> and  I get two properties:
> path=dir and portal=portal
>   


Mime
View raw message