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

camel-jpa - Avoid using EntityManager from header by default

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • 3.x
    • camel-jpa
    • None
    • Unknown

    Description

      See CAMEL-16470

      Historically camel-jpa would lookup from exchange header / property an EntityManager to use instead of from its own component. This was needed by jbpm and other 3rd party frameworks that integrated with Camel.

      However this causes pain for normal users, where you just want to use the jpa component out of the box with the JPA EM it has been configured with. And if you add other jpa components to integrate with other databases, then they should out of the box use their own EM and so on. This is how JMS, Kafka and other components work.

      So to allow the old behavior, we add a boolean option on the jpa component to turn on the old style. And then leave it off for new style onwards.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            davsclaus Claus Ibsen

            Dates

              Created:
              Updated:

              Slack

                Issue deployment