camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Charles Moulliard <ch0...@gmail.com>
Subject Re: Fetching data in batches
Date Thu, 30 Aug 2012 11:05:28 GMT
Here is a small JPA project :
https://github.com/FuseByExample/camel-persistence-part1

Simply add this property in the jpa url : "jpa:
//org.apache.camel.examples.test?maxMessagesPerPoll=10"

On Thu, Aug 30, 2012 at 12:58 PM, me.mehta <meenumeenu4@gmail.com> wrote:

> Thanks Charles,
>
> Can you point me to some example using it with spring xml so I can see how
> it works.
> Charles Moulliard-2 wrote
> >
> > Hi Mehta,
> >
> > As Apache Camel proposes some BatchConsumer (JPA, ...) you can always use
> > one of them (http://camel.apache.org/batch-consumer.html) to poll data
> > before to send them in a camel route.
> >
> > Regards,
> >
> > Charles
> >
> > On Thu, Aug 30, 2012 at 12:25 PM, me.mehta &lt;meenumeenu4@&gt; wrote:
> >
> >> Hi,
> >>
> >> I have a requirement where I am getting large number of rows from sql
> >> endpoint in camel, and then processing each record and writing to a
> file.
> >> I want to know if there is some way to fetch the data in batches rather
> >> than
> >> in a go.
> >>
> >> Thanks,
> >> Mehta
> >>
> >>
> >>
> >> --
> >> View this message in context:
> >>
> http://camel.465427.n5.nabble.com/Fetching-data-in-batches-tp5718366.html
> >> Sent from the Camel - Users mailing list archive at Nabble.com.
> >>
> >
> >
> >
> > --
> > Charles Moulliard
> > Apache Committer / Sr. Pr. Consultant at FuseSource.com
> > Twitter : @cmoulliard
> > Blog : http://cmoulliard.blogspot.com
> >
>
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Fetching-data-in-batches-tp5718366p5718368.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Charles Moulliard
Apache Committer / Sr. Pr. Consultant at FuseSource.com
Twitter : @cmoulliard
Blog : http://cmoulliard.blogspot.com

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message