Hi Claus,

My Camel version is 2.10. I have set streamCache="true" in <camelContext
...>.

 My objective is to check incoming file content for a specific parameter in
the content string and accordingly I need to copy original source file to
output folder. 

Two output folders are there : 'atm' and 'neft' 
Common receiving folder is : 'received'

Previously I used <split> and <tokenize> tags but it did not work properly
for me. 
I just removed <split> tag along with  <tokenize token="~" /> but I can not
even print log message after checking condition with <when> .

Now the XML route looks like below -

<route id="route1">
                        <from uri="file:E:\\bankappfiles\\received?delete=true" 
/>
                        <log message="Title Name [${body}]" />

                        
                                <choice>
                                        <when>
                                                <simple> ${in.body} contains 
'oprncode=ATM'</simple>
                                                <log message="=========>> ATM 
[${in.body}]" />
                                                <to 
uri="file:E:\\bankappfiles\\atm?noop=true" />
                                        </when>
                                        <when>
                                                <simple>${in.body} contains 
'oprncode=NEFT'</simple>
                                                <log message="=========>> NEFT 
[${in.body}]" />
                                                 <to
uri="file:E:\\bankappfiles\\neft?noop=true" />
                                        </when>
                                </choice>
                        
                </route>


Please help me regarding this issue as no concrete example and documents not
available for specific problem to resolve.

Thanks in advance.

Jayanta P.




--
View this message in context: 
http://camel.465427.n5.nabble.com/File-content-missing-in-Copied-File-using-Camel-XML-DSL-tp5750582p5750613.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to