Hi

Into multiple threads is that because you enabled parallel processing
on the splitter?

By default it ought to be single threaded even in streaming mode.

On Thu, Apr 23, 2015 at 3:43 PM, dermoritz <tantea...@hotmail.com> wrote:
> I am using camels jdbc component to load big tables into another system.
> Because i need to start other routes after loading table is finished i need
> to detect when all table entries are passed.
>
> Because the size of the table i am using this setup ()
>
>     .to("jdbc:testdb?outputType=StreamList")
>       .split.body().streaming()
>       ...
>
> The output of streaming() is an iterator and i tried hasNext() on it. The
> problem with this approach is that the data is split into multiple threads.
> in my tests there are running 2 threads and therefor there are 2 iterators.
> So i need to detect when hasNext for the last thread/iterator is false.
>
> Is there a secure way to determine the number of thread/iterators? Is this
> always 2?
>
>
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/camel-jdbc-component-detect-end-of-streamlist-tp5766218.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cib...@redhat.com
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