Hi, Please check out the thread below to get resolution to your problem.
http://www.nabble.com/Error-Handling-td23493625.html http://www.nabble.com/Error-Handling-td23493625.html In this thread Claus has put forth the challenges and workarounds to address this issue. Cheers, Ashwin... Peter Thygesen-2 wrote: > > I writing a simple route that uploads files put in a folder. > > > > Configuration: running camel on ApacheMQ 5.2.0 > > > > (camel part of activemq.xml) nothing fancy.. > > <camelContext id="cision-file-channel" xmlns=" > http://activemq.apache.org/camel/schema/spring"> > > <route> > > <from > uri="file://files-to-upload?consumer.delay=60000<file:///\\files-to-upload?consumer.delay=60000> > "/> > > <to uri="ftp://ca...@localhost?password=camel"/> > > </route> > > </camelContext> > > > > This works “fine” when the FTP Server is running. When FTP ser is down, it > retries, then dump the filen on deadletterchannel e.a. the log file. Not > very useful. > > > > 1) How do I make sure it is not dumped in the log file.. pretty much any > other place would be better. E.g. another folder. Most of all I would like > it to stay in the upload folder until connection has been reestablished. > > 2) There is .camel folder in the upload folder. This folder contains the > files that have been processed. Who and when is this folder cleanup and > how > large will it grow? > > > > Hope you can help out a newbie like me > > > > BTW > > I fould a posting where you discuss threadsafety and ftp producer > http://www.nabble.com/Threadsafety-of-Camel-FTP-td23615932.html > > Here you talk about the possibility of making a new uri option for > concurrent producer. Was this very interesting idea entered in jira? > > > > Thx Peter > > ----- --- Ashwin Karpe, Principal Consultant, PS - Opensource Center of Competence Progress Software Corporation 14 Oak Park Drive Bedford, MA 01730 --- +1-972-304-9084 (Office) +1-972-971-1700 (Mobile) ---- Blog: http://opensourceknowledge.blogspot.com/ -- View this message in context: http://www.nabble.com/Hot-to-write-a-Simple-FTP-producer-with-errorhandling-tp23654861p23656861.html Sent from the Camel - Users mailing list archive at Nabble.com.
