2008/1/30, cmdr <[EMAIL PROTECTED]>:
>
> Hi
>
> I have already tried
> from("file:insert_request.sql").splitter(body(String.class).tokenize("\n")).to("jdbc:dataSource");
> The problem is that only the first line is send as a message.:-(
>
> When I use
> from("file:insert_request.sql").splitter(body(String.class).tokenize("\n")).to("file:dataSource.txt"),
> I get only the first line in the output file.In case of the second file->file example I just suspect, that you overwrite this destination file for every splitted part... There is append parameter to the file endpoint that maybe could help. Lets try to change file to log component at the very end to verify if it actually works and splits your message. Anyway this jdbc problem is strange.. Roman
