Hi Guru, If you want to keep files untouched try using the noop option like <from uri="file:src/messages?noop=true"/> Here is the reference to the File component: http://camel.apache.org/file2.html
And then, for writing files to the file system you should have something like this: <to uri="file:target?fileName=output.xml"/> What kind of exception do you get when trying that code? Hope this helps, -Marcelo On Jul 5, 2011, at 6:20 AM, Gnanaguru S wrote: > > Hi > > This code was successful. > > <from uri="file://inputdir/"/> > <to uri="activemq:queue:inputQueue"/> > > But here , when i place a xml file in inputdirectory, it is moving out of > that folder !. I want it just to copied or the to be just read and move to > the queue. > > Also from the output queue, i want the contents to be written in a peculiar > file namely: output.xml. > ( " <from uri="activemq:queue:outputQueue"/> > <to uri="file://outputdir/"/> " ) > > Since tried with this code, it didnt worked ( <to > uri="file:target?fileName=output.xmll"/> ) > > Kindly help me out > > > > Cheers > Guru > > > > ----- > Cheers > Guru > -- > View this message in context: > http://servicemix.396122.n5.nabble.com/File-reading-and-writing-issue-tp4553223p4553223.html > Sent from the ServiceMix - User mailing list archive at Nabble.com. -- Marcelo Jabali Sr. Solutions Consultant FuseSource M: 978 729 6239 O: 619 464 2595 Web: fusesource.com Skype/Twitter: mjabali
