created issue
https://issues.apache.org/activemq/browse/CAMEL-699

now I tried the earlier way, like 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", "dir")
       
.to("jbi:service:http://servicemix.in2m.com/samples/http/MyProviderService?mep=in-out";)
        .setHeader("path", "portal")
       
.to("jbi:service:http://servicemix.in2m.com/samples/http/PortalService?mep=in-out";);

But it gives error that 
 setHeader(java.lang.String,org.apache.camel.Expression) in
org.apache.camel.model.ProcessorType cannot be applied to
(java.lang.String,java.lang.String)

after some reading I did 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("path", constant("portal"))
       
.to("jbi:service:http://servicemix.in2m.com/samples/http/PortalService?mep=in-out";);
        
There was no error but it sets property as path=dir. Now even when my
PortalService is down I get path =dir ?

How can I get rid of the problem?
-- 
View this message in context: 
http://www.nabble.com/error-handling-problem-tp18397098s22882p18403234.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to