Hi

Try with statement.maxRows=10

On Thu, Jul 9, 2015 at 1:15 PM, fxthomas <[email protected]> wrote:
> hello,
>
>    I tried using the readSize option in the JDBC , but does not work. Is it
> that it won't work because I am using split with StreamList . I just want to
> get row By row from a DB , but i want only the first 10 rows. Currently it
> gets all the rows . Me code as below.
>
>
> from("timer://getData?period=2h").setBody(constant(from)).to("jdbc:DS?readSize=10&outputType=StreamList").split(body()).process(new
> CustomProcessor(CustomConstants.DB)).to(to);
>
>
> regards,
> Felix T
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/readSize-option-JDBC-component-not-working-for-split-tp5769042.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: [email protected]
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/

Reply via email to