Claus Ibsen-2 wrote:
> 
> 
> The pollStrategy lets you handle the error at this current polling. By
> default the ftp consumer will poll every second. You can change this
> interval by setting a delay on the FTP endpoint, to ex ?delay=60000 to
> poll once every 60th seconds. The delay is in millis.
> 
> If you want to stop the ftp consumer totally you need to stop the route
> instead.
> 
> 

Agreed, that the PollStrategy is for a particular polling cycle. But when I
say 'false' it should stop that poll and proceed to next endpoint in the
route, isn't it? For instance, in following route def:

from("ftp://s...@localhost?pollstrategy=#mystrategy";).process(new
MyAuditProcessor()).to("file://target/ftp").stop();

If I get an exception in FTP producer (server down), the control goes to
myStrategy.rollback(), and when I return false it just keeps polling and
does not proceed to .process().  Is this expected?  If I do a
consumer.stop() it stops the entire route, which I do not want.

Thanks again for your continued help!

-- 
View this message in context: 
http://www.nabble.com/catch-error-in-producer-endpoint-tp25748604p25854055.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to