[jBPM] - Re: DroolsSpringJpaManager breaks when Database Server is restarted, how to handle it?
Maciej Swiderski <[email protected]> Tue, 13 Aug 2013 01:19:29 -0400
| Newsgroups | gmane.comp.java.jboss.user |
|---|---|
| Message-ID | <[email protected]> |
Maciej Swiderski [https://community.jboss.org/people/swiderski.maciej] created the discussion "Re: DroolsSpringJpaManager breaks when Database Server is restarted, how to handle it?" To view the discussion, visit: https://community.jboss.org/message/832426#832426 -------------------------------------------------------------- I believe that the issue is not really entity manager that is cached but the underlying db connection instance. The entity manager should be properly closed cleaned but when it tries to use connection it is broken and thus failing in general. I noticed that you use Apache DBCP connection pool so you can configure the pool to verify the connection on various phases - it will execute simple query to check if connection is valid before it is delivered to the application - in this case entity manager. See http://commons.apache.org/proper/commons-dbcp/configuration.html here for more details about validation of connection in DBCP. HTH -------------------------------------------------------------- Reply to this message by going to Community [https://community.jboss.org/message/832426#832426] Start a new discussion in jBPM at Community [https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034] _______________________________________________ jboss-user mailing list [email protected] https://lists.jboss.org/mailman/listinfo/jboss-user