Are you sure "GenericFileOperationFailedException.class" is thrown from
the producer?
Because it could be thrown by a producer("from()") but not by a
consumer("to()")
Try to catch Exception.class and log the exception you get with
|Exchange.EXCEPTION_CAUGHT or some simple exceptions listed here:
http://camel.apache.org/simple
Regards,
Morgan
|
On 11/02/2015 16:08, ekz wrote:
Hi Morgan,
Thanks for the quick reply.
I looked at the page you suggested and also tried with handler,
But the strange thing is:
I have another route in which i connect to ftp too. But that route works as
i expected and retryWhile predicate is checked.
Predicate is considered:
from("direct:start")
.to("ftp://user@host?password=***&disconnect=true&binary=true")
Predicate is not considered:
from("ftp://user@host?password=***"
+ "&passiveMode=true&consumer.delay=10000&fastExistsCheck=true"
+ "&consumer.bridgeErrorHandler=true"
+ "&throwExceptionOnConnectFailed=true" )
.log("");
--
View this message in context:
http://camel.465427.n5.nabble.com/retryWhile-predicate-is-not-called-on-ftp-connection-failure-tp5762601p5762607.html
Sent from the Camel - Users mailing list archive at Nabble.com.