Hi

I am not sure why you get empty lines. The components is using the API
from the JDK to read a line by line with code
   line = br.readLine();

If you can reproduce the issue, then I suggest to use a debugger in
the readFromStream method in the StreamConsumer, and see what is going
on.

Also it could be the fact that the other party is writing an empty
line to the file etc.
Also consider upgrade to a newer version of Camel and try out, to see
if that helps.


On Wed, Apr 25, 2012 at 12:22 PM, Gnanaguru S
<gnanaguru.sattanat...@wipro.com> wrote:
>
> Yes. Claus.I am getting empty message.
>
> This is my scenario.
>
> 1. I have a log file( Txt file) it is getting updated from one system. I
> want to read every new line updated and write to a database.
>
> 2. Every time I should not read a file from first line, Hope you can
> understand.
>
> 3. Instead of a database, First am trying to write with a file.
>
> Please help me how I can do this using Camel. I read file concepts in camel
> in action, But I was not able to get any idea for my use case.
>
> Regards
> Guru
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Camel-Stream-URI-error-tp5661443p5664420.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
CamelOne 2012 Conference, May 15-16, 2012: http://camelone.com
FuseSource
Email: cib...@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to