You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2015/03/03 04:02:06 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=14344402#comment-14344402 ]
ASF GitHub Bot commented on CAMEL-8054:
---------------------------------------
GitHub user devgrok opened a pull request:
https://github.com/apache/camel/pull/417
CAMEL-8054: jpa shared entity manager
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.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/devgrok/camel feat/jpa-sharedEntityManager
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/camel/pull/417.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #417
----
commit 37871e49bb4ab8f9514330def612c93dbf8e0488
Author: Chris Watts <wa...@anz.com>
Date: 2014-12-14T15:52:48Z
CAMEL-8054: sharedEntityManager for 2.14
commit 010b19ded6a64136970cd9cc71f6c7291e71eeaf
Author: Chris Watts <wa...@anz.com>
Date: 2014-12-14T16:48:27Z
merging auto-close entitymanager bugs
----
> 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-8054-sharedEntityManager-2.13.patch, CAMEL-8054-sharedEntityManager-2.14.patch, 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)