...
Name | Default Value | Description |
---|---|---|
entityType | entityClassName | Is the provided entityClassName from the URI |
persistenceUnit | camel | the JPA persistence unit used by default |
consumeDelete | true | Option for JpaConsumer only. Enables / disables whether or not the entity is deleted after it is consumed. |
consumeLockEntity | true | Option for JpaConsumer only. Enables / disables whether or not to use exclusive locking of each entity while processing the results from the pooling. |
flushOnSend | true | Option for JpaProducer only. Flushes the EntityManager after the entity beans has been persisted. |
maximumResults | -1 | Option for JpaConsumer only. Set the maximum number of results to retrieve on the Query. |
transactionManager | null | Camel 1.6.1/2.0: Sets the transaction manager to use. If none provided Camel will default use |
consumer.delay | 500 | Option for JpaConsumer only. Delay in millis between each poll. |
consumer.initialDelay | 1000 | Option for JpaConsumer only. Millis before polling starts. |
consumer.userFixedDelay | false | Option for JpaConsumer only. true to use fixed delay between pools, otherwise fixed rate is used. See ScheduledExecutorService in JDK for details. |
maxMessagesPerPoll | 0 | Camel 2.0: Option for JpaConsumer only. An integer to define a maximum messages to gather per poll. By default no maximum is set. Can be used to set a limit of e.g. 1000 to avoid when starting up the server that there are thousands of files. Set a value of 0 or negative to disabled it. |
Message Headers
Camel will add the following message headers to the Exchange
Header | Type | Description |
---|---|---|
CamelJpaTemplate | JpaTemplate | Camel 2.0: The JpaTemplate object used to access the entity with. Allows you to get hold on it in case you need it in some situations, for instance in a type converter or when you do some custom processing. |
Configuring EntityManagerFactory
...