Hi

maximumResults is JPA specific and you should favor using that as the
JPA allows to optimize for this.
maxMessagesPerPoll is a general option in camel batch consumers that
allows to limit the number of rows from the batch the consumer will
process at this poll.

Dont use the together, use the maximumResults instead.

On Sat, Feb 21, 2015 at 3:03 AM, Rafael Ponte <rpo...@gmail.com> wrote:
> Hi Guys,
>
> I'm using JPA Component and I'm not understanding the difference between
> these two parameters: maximumResults and maxMessagesPerPoll.
>
> If I set maximumResults=100 and maxMessagesPerPoll=20 it seems like
> on every polling my query retrieves 100 entities from database but only 20
> of them are processed by jpa-consumer. The next poll retrieves again more
> 100 entities instead of using the entities loaded previously.
>
> So what's the meaning of using those two parameters together?
>
> --
> Rafael Ponte
> TriadWorks | Formação Java
> http://cursos.triadworks.com.br
>
>
> --
> Rafael Ponte
> TriadWorks | Formação Java
> http://cursos.triadworks.com.br



-- 
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