Hi Claus,

I found there is an unit tests[1] still use the handled(false) to demo the file will not be delete when the error happens. If we are planing remove the Handled method, we also need to update this kind of test.

[1]https://svn.apache.org/repos/asf/camel/trunk/camel-core/src/test/java/org/apache/camel/component/file/FileConsumerFailureHandledTest.java

Willem

Claus Ibsen wrote:
Hi

Handled is @deprecated on <errorHandler/>. We want to keep it easier
and remove stuff which would confuse people.
Why would you want to not let an error handler NOT to handle an error.



On Wed, May 26, 2010 at 10:26 AM, ankelee <andreasasm...@gmail.com> wrote:
I do however see that your example in the JIRA ticket uses the handled
property - when I try to do the same I just get:

Caused by:
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line
70 in XML document from class path resource [opsigInboundRoute.xml] is
invalid; nested exception is org.xml.sax.SAXParseException:
cvc-complex-type.3.2.2: Attribute 'handled' is not allowed to appear in
element 'errorHandler'.



ankelee wrote:
Hi

Sorry I wasn't very clear. I'm using Camel 2.3 and the <errorHandler> tag
in Spring DSL. I've been looking at the schema for 2.3 and also

https://issues.apache.org/activemq/browse/CAMEL-1799
and
https://issues.apache.org/activemq/browse/CAMEL-1598

and it seems that the handled-option is missing in Spring DSL?



ankelee wrote:
Hi

From the doc pages:

errorHandler(deadLetterChannel("jms:queue:dead").maximumRedeliveries(3).redeliverDealy(5000).handled(false));

I can't figure out or find any information as to how do the .handled() in
Spring DSL. I wan't to leave the exception unhandled so that I can have
my file endpoint do "move=" only if there is no exception in the route.


--
View this message in context: 
http://old.nabble.com/errorHandler-%2B-.handled%28false%29%29--in-Spring-DSL.-tp28670904p28677820.html
Sent from the Camel - Users mailing list archive at Nabble.com.






Reply via email to