Hi
delay is the option for the scheduler which is generic for components
that uses this such as file/ftp/jpa and others
reconnectDelay is special for ftp as it has its own little reconnect
logic built-in
On Thu, Feb 12, 2015 at 2:04 PM, ekz wrote:
> Hi Claus,
>
> I can handle the exception with
Hi Claus,
I can handle the exception with the help of custom poll strategy for the ftp
consumer(from), thanks for the suggestion.
But i noticed that if i use custom pollStrategy i can delay reconnect
attempt with the "delay=xxx" attribute instead of "reconnectDelay=xxx"
attribute.
is this normal?
It works a bit different when its from vs to. The ftp consumer (eg
from) is scheduled based, and you cannot configure redelivery and
whatnot using onException.
It uses the option maximumReconnectAttempts as the max number of
connection attempts before failing. You cannot use onException to
change
Yes, GenericFileOperationFailedException is thrown. Trying with
Exception.class did not change the situation.
onException(Exception.class)
.handled(true)
.retryWhile(new Predicate() {
@Override
public boolean matches(Exchange exchange) {
System.out
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 h
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
Hello,
Take a look at :
https://github.com/apache/camel/blob/master/camel-core/src/test/java/org/apache/camel/processor/onexception/OnExceptionRetryUntilTest.java
Hope it helps!
Regards,
Morgan
On 11/02/2015 13:14, ekz wrote:
Hi,
I have an FTP route for consuming files and working fine. Wh