...
You can append query options to the URI in the following format, ?option=value&option=value&...
Options
...
Name | Default Value | Description |
---|---|---|
| entityClassName | Overrides the entityClassName from the URI. |
| | The JPA persistence unit used by default. |
| | JPA consumer only: If |
| | JPA consumer only: Specifies whether or not to set an exclusive lock on each entity bean while processing the results from polling. |
| | JPA producer only: Flushes the EntityManager after the entity bean has been persisted. |
| | JPA consumer only: Set the maximum number of results to retrieve on the Query. |
| | This option is Registry based which requires the |
| | JPA consumer only: Delay in milliseconds between each poll. |
| | JPA consumer only: Milliseconds before polling starts. |
| | JPA consumer only: Set to |
| | JPA consumer only: An integer value to define the maximum number of messages to gather per poll. By default, no maximum is set. Can be used to avoid polling many thousands of messages when starting up the server. Set a value of 0 or negative to disable. |
|
| JPA consumer only: To use a custom query when consuming data. |
|
| JPA consumer only: To use a named query when consuming data. |
|
| JPA consumer only: To use a custom native query when consuming data. You may want to use the option |
|
| Camel 2.12: JPA consumer only: This option is Registry based which requires the |
|
| Camel 2.7: JPA consumer only: Defines the type of the returned payload (we will call |
| | Camel |
...
2.7.5/2.8.3/2.9: |
...
JPA |
...
consumer |
...
only: |
...
Whether |
...
to |
...
run |
...
the |
...
consumer |
...
in |
...
transacted |
...
mode, |
...
by |
...
which |
...
all |
...
messages |
...
will |
...
either |
...
commit |
...
or |
...
rollback, |
...
when |
...
the |
...
entire |
...
batch |
...
has |
...
been |
...
processed. |
...
The |
...
default |
...
behavior |
...
(false) |
...
is |
...
to |
...
commit |
...
all |
...
the |
...
previously |
...
successfully |
...
processed |
...
messages, |
...
and |
...
only |
...
rollback |
...
the |
...
last |
...
failed |
...
message. |
|
...
| Camel 2.11.2/2.12: |
...
To |
...
configure |
...
the |
...
lock |
...
mode |
...
on |
...
the |
...
consumer. |
...
The |
...
possible |
...
values |
...
is |
...
defined |
...
in |
...
the |
...
enum |
...
|
...
. |
...
The |
...
default |
...
value |
...
is |
...
changed |
...
to |
...
|
...
since |
...
Camel |
...
2.13 |
...
. |
|
...
| Camel 2.13: |
...
To |
...
configure |
...
whether |
...
to |
...
use |
...
NOWAIT |
...
on |
...
lock |
...
and |
...
silently |
...
skip |
...
the |
...
entity. |
...
| | Camel 2.5: |
...
JPA |
...
producer |
...
only: |
...
Indicates |
...
to |
...
use |
...
|
...
instead |
...
of |
...
|
...
. |
...
Note: |
...
|
...
doesn't |
...
work |
...
for |
...
detached |
...
entities |
...
(where |
...
the |
...
EntityManager |
...
has |
...
to |
...
execute |
...
an |
...
UPDATE |
...
instead |
...
of |
...
an |
...
INSERT |
...
query)! |
...
| | Camel 2.12.3: |
...
camel-jpa |
...
will |
...
join |
...
transaction |
...
by |
...
default |
...
from |
...
Camel |
...
2.12 |
...
onwards. |
...
You |
...
can |
...
use |
...
this |
...
option |
...
to |
...
turn |
...
this |
...
off, |
...
for |
...
example |
...
if |
...
you |
...
use |
...
LOCAL_RESOURCE |
...
and |
...
join |
...
transaction |
...
doesn't |
...
work |
...
with |
...
your |
...
JPA |
...
provider. |
...
This |
...
option |
...
can |
...
also |
...
be |
...
set |
...
globally |
...
on |
...
the |
...
|
...
, |
...
instead |
...
of |
...
having |
...
to |
...
set |
...
it |
...
on |
...
all |
...
endpoints. |
...
Message Headers
Camel adds the following message headers to the exchange:
...