Trying to help someone out on the user@ list: http://tomee-openejb.979440.n4.nabble.com/javax-ejb-ConcurrentAccessTimeoutException-No-instances-available-in-Stateless-Session-Bean-pool-WaiS-td4690740.html
The context is it looks like they have an exhausted database pool, but no actual connections in use - potentially connections are leaking. I can reproduce the exact stacktrace by doing ds.getConnection() in an EJB business method, and not calling connection.close(), and calling the business method over and over (in a unit test in openejb-core). This is an attempt to provide some debug logging to highlight where connections are borrowed and closed, and detect if any are left open at the end of a transaction. https://github.com/apache/tomee/pull/583. Any thoughts? Jon
