Sorry - I use the Sprint context based definition... see this: http://www.nabble.com/Simple-FTP-producer-with-errorhandling-td23655162.html
Hari Gangadharan Architect, Globalstar/SPOT http://www.harinair.com 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 > > -- View this message in context: http://www.nabble.com/Hot-to-write-a-Simple-FTP-producer-with-errorhandling-tp23654861p23662278.html Sent from the Camel - Users mailing list archive at Nabble.com.
