I also tried the below. For some reason tie time taken from printing the
"Starting to process big file" to calling the bean method "parseMarsData"
takes an average of 15 milli seconds.
The input file has 2000 lines of data.
I am just passing them as a string to the method "parseMarsData" which does
some pasrsing on these data.
Please advise if there is a better way to do this so it increases the
performance.
from("file:C:\\camelProject\\data\\inbox\\mars")
.log("Starting to process big file: ${header.CamelFileName}")
.bean(MarsParser.class,"parseMarsData")
.to("file:C:\\camelProject\\data\\outbox\\mars?fileName=${file:onlyname.noext}");
Thanks & regards,
Ebe
--
View this message in context:
http://camel.465427.n5.nabble.com/Performance-issue-tp4964485p4965077.html
Sent from the Camel - Users mailing list archive at Nabble.com.