camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j_pramanik_ind <>
Subject Re: File content missing in Copied File using Camel XML DSL
Date Fri, 25 Apr 2014 13:25:23 GMT
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}]" />

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

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:
Sent from the Camel - Users mailing list archive at

View raw message