I am using the below code to get Connection. I have used the c3p0 library for connection pooling. Now my question is, this code is not checking whether the connection is existing or not. Most likely this will get hit by the famous connection closed error after 8 hours. While I was using C3P0 with hibernate, there were configurations to