I tried the last version of camel (1.3-SNAPSHOT) but that did not solve the
problem.
I tried this:
from("file:resultset2.sql")
.splitter(body(String.class).tokenize("\n"))
.process(new Processor(){
public void process(Exchange exchange) throws Exception
{
System.out.println(exchange.getIn());
}})
.to("jdbc:dataSource");
It seems that the splitting is done correctly
- the output message display my sql requests
- the exchange body type is FileMessage
There is a problem when with the to() after splitting.
When I try to("file:dataSource_atg.txt"), I get a file with only the first
message
--
View this message in context:
http://www.nabble.com/use-of-splitter-component-to-split-serialised-JaxB-tp10899172s22882p15207368.html
Sent from the Camel - Users mailing list archive at Nabble.com.