Hi all,
I have a simple application that uses Hibernate as a database backend. I also use Spring framework to provide me transaction management. The problem I'm having is that when I close my application and call SessionFactory.close(), my database connections are not properly closed and I get
Code:
2004-06-25 11:10:23 LOG: could not receive data from client: Connection reset by peer
2004-06-25 11:10:23 LOG: unexpected EOF on client connection
to my database (PostgreSQL 7.4.3) logs. I have tried both DBCP and C3P0 as connection pools and have same problem with both of them.
Anyone having ideas how to get the db connections closed nicely?