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

Use SharedEntityManager to reduce connections

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.13.2
    • 2.16.0
    • camel-jpa
    • None
    • Patch Available
    • 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

        1. CAMEL-8054-sharedEntityManager-2.13.patch
          13 kB
          Chris Watts
        2. CAMEL-8054-sharedEntityManager-2.14.patch
          18 kB
          Chris Watts
        3. camel-sharedEntityManager.patch
          7 kB
          Chris Watts

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: