Datasource in jdbc connection pooling not returning connection [duplicate]
This question already has an answer here: Is it safe to use a static java.sql.Connection instance in a multithreaded system? 2 answers I have a jsp web application. I'm using jdbc connection pooling to use mysql database located at the server side. My web application hangs sometimes, when i checked debugging i found that it hangs at ds.getConnection(); It does not return any exception/error. Browser will be simply in loading state. I have included my DBConnection class which i use to create dadasource and getconnection from datasource.I'm calling getConnection(); method to get connection from