Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Consuming messages removes (or updates) entities in the database. This allows you to use a database table as a logical queue, consumerse take messages from the queue and then delete/update them to logically remove them from the queue.

If you do not wish to delete the entity when it has been processed you can specify ?consumeDelete=false on the URI. This will result in the entity being processed each poll.

If you would rather perform some update on the entity to mark it as processed (such as to exclude it from a future query) then you can annotate a method with @Consumed which will be invoked on your entity bean when the entity bean is consumed.

URI format

Code Block
jpa:[entityClassName]

...

Name

Default Value

Description

persistenceUnit

camel

the JPA persistence unit used by default

consumeDelete

true

Enables / disables whether or not the entity is deleted after it is consumed

Include Page
CAMEL:Endpoint See Also
CAMEL:Endpoint See Also