GitHub user jamesET opened a pull request: https://github.com/apache/camel/pull/1658
Refresh entity manager on PersistenceException The entity manager needs to be refreshed on all PersistenceExceptions to ensure connections are being taken/returned from a connection pooled data source. This is especially important in cases where connection to the database is temporarily broken. You can merge this pull request into a Git repository by running: $ git pull https://github.com/jamesET/camel master Alternatively you can review and apply these changes as the patch at: https://github.com/apache/camel/pull/1658.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #1658 ---- commit 20f610ddc96dabbdba785153a7a20c24f366540c Author: James Thomas <jimmy.e.tho...@gmail.com> Date: 2017-04-25T11:23:55Z Refresh entity manager on PersistenceException The entity manager needs to be refreshed on all PersistenceExceptions to ensure connections are being taken/returned from a connection pooled data source. This is especially important in cases where connection to the database is temporarily broken. ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---