you should just be able to throw any exception that is not explicitly handled otherwise (with onException(), etc)...see https://svn.apache.org/repos/asf/camel/trunk/camel-core/src/test/java/org/apache/camel/component/file/FileConsumerMoveAndMoveFailureTest.java this unit test ...
oritush wrote: > > I am using the moveFailed option for a file, which its endpoint is > bean/method: > > from("file://sourceFolder?filter=#MyFilesFilter&moveFailed=error&move=success").to("bean:myParserService?method=parse"); > > what type of failures - throw an exception or return false - should the > 'parse' method returns in order for the file to move to the 'error' > folder? > > thanks, > Orit > ----- Ben O'Day IT Consultant -http://consulting-notes.com -- View this message in context: http://camel.465427.n5.nabble.com/moveFailed-in-case-of-a-method-failure-tp4995001p4995091.html Sent from the Camel - Users mailing list archive at Nabble.com.