Try enable stream caching See this FAQ http://camel.apache.org/why-is-my-message-body-empty.html
And btw what Camel version do you use? On Fri, Apr 25, 2014 at 9:21 AM, j_pramanik_ind <jayanta.prama...@gmail.com> wrote: > Hi Charles, > > Thanks for your reply. I changed my DSL as below but it didn't work as what > I need. The file is not copied to target folder. Can you please suggest any > other way - > > > *<route id="route1"> > <from > uri="file:E:\\bankappfiles\\received?delete=true" /> > <log message="Title Name [${body}]"/> > > <choice> > <when> > <simple> ${body} contains > 'ATM'</simple> > <log message="For ATM :: > [${body}]"/> > <to > uri="file:E:\\bankappfiles\\atm?noop=true" /> > </when> > <when> > <simple>${body} contains > 'NEFT'</simple> > <log message="For NEFT :: > [${body}]"/> > <to > uri="file:E:\\bankappfiles\\neft?noop=true" /> > </when> > </choice> > > </route>* > > > > Thanks. > > Jayanta P. > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/File-content-missing-in-Copied-File-using-Camel-XML-DSL-tp5750582p5750596.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen hawtio: http://hawt.io/ fabric8: http://fabric8.io/