Still in the battle with this case ..... hehehehe

Viewing the documentation I found the component SQL Component:

In the options:

maxMessagesPerPoll: Camel 2.11: SQL consumer only: An integer value to
define the maximum number of messages to gather per poll. By default, no
maximum is set.

But also with this component he ignores this option:

from("timer://query?fixedRate=true&delay=5s&period=10800s") 
    .routeId("route-product") 
    .setBody(constant(new ProductQuery().getProductSelect())) 
to("sql:" + new ProductQuery().getProductSelect() +
"?maxMessagesPerPoll=1000&dataSource=myDataSource")
    .marshal() 
        .json(JsonLibrary.Gson) 
        .setHeader(Exchange.CONTENT_TYPE, constant("application/json")) 
        .setHeader("CamelFileName", simple("${id}.json")) 
.to("file:product"); 



--
View this message in context: 
http://camel.465427.n5.nabble.com/Using-Split-with-JSON-File-tp5797508p5797770.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to