You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2014/11/17 13:07:34 UTC

[jira] [Commented] (CAMEL-8054) Use SharedEntityManager to reduce connections

    [ https://issues.apache.org/jira/browse/CAMEL-8054?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14214583#comment-14214583 ] 

Claus Ibsen commented on CAMEL-8054:
------------------------------------

I think we have improved/refactored camel-jpa for camel 2.14 or 2.15 to fix this.

>From the git log its CAMEL-7364

> Use SharedEntityManager to reduce connections
> ---------------------------------------------
>
>                 Key: CAMEL-8054
>                 URL: https://issues.apache.org/jira/browse/CAMEL-8054
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-jpa
>    Affects Versions: 2.13.2
>            Reporter: Chris Watts
>         Attachments: camel-sharedEntityManager.patch
>
>
> When using JpaTransactionManager it "Binds a JPA EntityManager from the specified factory to the thread". Meaning that on top of the EntityManager created for each JpaConsumer, each time it creates a new EntityManager.
> New property:
> *sharedEntityManager* - whether to use spring's SharedEntityManager for the consumer/producer. Sets joinTransaction=false
> Also added as a property to the JpaComponent.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)