camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hilde <>
Subject Component file: move and moveFailed
Date Fri, 04 May 2012 11:53:53 GMT
Dear Listener!

I have a route that starts with a file consumer that has the options 'move'
and 'moveFailed' configured. 
After the file component has given away the file to the subsequent process
an exception is thrown that 
will be handled via the exception policy (onException with handled=false). 
The problem is that the beginning file component does not register the
exception and therefore the csv 
file is always moved to the directory /.done/ instead of /.error/.

How can I notify the file component that the process is failed with the
result to move the csv file to
/.error/? My understanding actually was that the file component should
handle this for itself once 
the option 'move' and 'moveFailed' are configured!? :-(

I am using Apache Camel version 2.9.0. The /Default Error Handler/ is used.

At next you can find the camel route I am talking about:

<camel:endpoint id="fileInEndpoint"

   <camel:to uri="seda:logger" />			

<camel:route id="readConfig">
    <camel:from ref="fileInEndpoint" />
	<camel:bean ref="reset" method="resetRepo" />
   <camel:setHeader headerName="operationName">
  <camel:unmarshal ref="bindyDataformat" /> 

Many thanks in advanced!

Best regards

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message