Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-19618

In the split(), camel-jpa producer creates a new EntityManager and does not obtain one from the current transaction

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • fuse-7.11.1-GA
    • fuse-7.11-GA
    • Camel
    • None
    • False
    • None
    • False
    • Release Notes
    • % %
    • +
    • Automated
    • Release Note
    • Hide
      • Download and unzip the reproducer.zip, and import it to the eclipse.
      • By following the README file in the project, setup postgresql.
      • Start CamelContext(withouttest).
      • Make sure spring.datasource.myds.hikari.maximumPoolSize=2 is defined n the application.properties.
      • Execute curl http://localhost:8080/cat

      maximumPoolSize is set 2 due to ENTESB-19617.

      Show
      Download and unzip the reproducer.zip, and import it to the eclipse. By following the README file in the project, setup postgresql. Start CamelContext(withouttest). Make sure spring.datasource.myds.hikari.maximumPoolSize=2 is defined n the application.properties. Execute curl http://localhost:8080/cat maximumPoolSize is set 2 due to ENTESB-19617 .

      In the split(), camel-jpa producer creates a new EntityManager and does not obtain one from the current transaction
      So if split() executes 2 loops, there will be two EntityMangaers and two connections. Due to ENTESB-19617, additional Entitymanager and connection are required too.

            zfeng@redhat.com Zheng Feng
            rhn-support-hfuruich Hisao Furuichi
            Stefan Veres Stefan Veres
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: