Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-8054

Use SharedEntityManager to reduce connections

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.13.2
    • Fix Version/s: 2.16.0
    • Component/s: camel-jpa
    • Labels:
      None
    • Patch Info:
      Patch Available
    • Estimated Complexity:
      Novice

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              wattsc3 Chris Watts
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: