camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pratibhaG <pratibha.ghog...@in2m.com>
Subject XML configuration for error handling
Date Thu, 19 Jun 2008 11:28:38 GMT

Is it possible to have XML configuration for errorHandler? If it is, how can
I convert following in XML?
RouteBuilder builder = new RouteBuilder() {
    public void configure() {
       
errorHandler(deadLetterChannel("seda:errors").maximumRedeliveries(2).useExponentialBackOff());
        from("seda:a").to("seda:b");
    }
};

I am trying something like this:

<camelContext id="errorhandler"
xmlns="http://activemq.apache.org/camel/schema/spring">
  <route>
    <from uri="seda:a"/>
	  <try>
	     <to uri="seda:b"/>
	   <catch>
        <exception>Exception</exception>
        	<to uri="jbi:endpoint:http://myerrorhandler/beanEndpoint"/>
      </catch>
    </try>  
  </route>
</camelContext>

But I dont know how to implement "maximumRedeliveries(2)"
Pratibha
-- 
View this message in context: http://www.nabble.com/XML-configuration-for-error-handling-tp18006102s22882p18006102.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Mime
View raw message