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

camel-jpa consumer fails to poll after database connection is lost

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

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.17.1
    • 2.17.7, 2.18.4, 2.19.0
    • camel-jpa
    • None
    • Hibernate JPA with Tomcat Connection Pool data source

    • Patch Available
    • Unknown
    • Patch

    Description

      Under a Hibernate JPA implementation with a Tomcat Connection pool set to test connections "on borrow", the camel-jpa consumer would poll normally until the underlying database connection was lost and then continue to report a PersistenceException at each poll.

      The entityManager instance in camel-jpa needs to be closed and rebuilt in order to force a new connection to be obtained from the connection pool.

      Attachments

        Activity

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

          People

            davsclaus Claus Ibsen
            jamestr James Thomas
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment