camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From boday <ben.o...@initekconsulting.com>
Subject Re: Error recovery
Date Wed, 04 May 2011 20:05:07 GMT
It won't resume where it left off by default.  Camel will only delete the
file if it was successfully processed and when it fails, the portion already
send to AMQ will not be rolled back.  When the process resumes, it will
process the entire file again.  One option is to use the file's moveFailed
option to move the file if it failed for special processing (if already
queued, ignore, etc)...


shailesh wrote:
> 
> Hi,
>    I have camel in the web container. And I am processing the xml file and
> spliting it and posting the split message to JMS queue. 
>    The question I have that if the server was the crash in the middle of
> the processing of the file. 
>    I would like the recovery from the failure to begin the processing from
> where the file was left off.
>  
>   <route>
>  <from uri="file://c:/target/infile"/>
>      <split>
>             <xpath>/foo/bar</xpath>
>             <to uri="jms:testQ1"/>
>        </split>               
>   </route>
> 
>    Thanks for suggestion.
> 


-----
Ben O'Day
IT Consultant -http://benoday.blogspot.com

--
View this message in context: http://camel.465427.n5.nabble.com/Error-recovery-tp4370197p4370930.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message