I am using a desktop application with PostgreSQL database server. When I am not using application for 10 to 20 minutes continuously, the database connection is dropped. And I am using PostgresqlJDBC for database connection.
Please help me on this to database connection time out.
Thanks.
<Resource ... maxWait="1" ... >for connection. I also use a Map<Session,Exception> to log where sessions has never closed.