camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: Generate a thread for each db record
Date Wed, 06 Jun 2012 16:13:22 GMT
On Wed, Jun 6, 2012 at 6:09 PM, Deepthi <> wrote:
> Hi,
> In my route my source is retrieving records from a table by executing
> following query:
> select * from tablename
> and I would like to generate a thread for each record to process the records
> simultaneously.
> How can I achieve this in camel spring 2.8.0?
> If i use a timer as my source and give the logic in the bean to retrieve the
> records, can i generate 1 thread for each record in the bean? Else what is
> the way to implement it?
> Claus - As you replied in previous thread, I am unable to understand how
> splitter can be used as I cannot give sql query as my source.

from timer
  to jdbc
  split body (parallel = true)
      to somewhere

Read the eip docs, and try out stuff. Its really best to try out
yourself and get experience.

If you got a copy of Camel in Action book, then chapter 8 and 10 talk
about the EIPs and concurrency/threading in much more details.

> Thanks,
> Deepthi
> --
> View this message in context:
> Sent from the Camel - Users mailing list archive at

Claus Ibsen
Twitter: davsclaus, fusenews
Author of Camel in Action:

View raw message