I have an application with one connection from pgjdbc-ng(0.8.9) for asynchronous notification and others from PostgreSQL JDBC Driver(Spring Data JPA) for other tasks.
Everything was fine in developing, but the connection from pgjdbc-ng got connect timeout when in SIT environment.
It confused me because other connections work totally fine.
I've tried two different code:
I have an application with one connection from pgjdbc-ng(0.8.9) for asynchronous notification and others from PostgreSQL JDBC Driver(Spring Data JPA) for other tasks. Everything was fine in developing, but the connection from pgjdbc-ng got connect timeout when in SIT environment. It confused me because other connections work totally fine. I've tried two different code:
and
All these two got the same result, only the connections from PostgreSQL JDBC Driver works. Here is the error message:
I'm sorry for lack of information. I can't reproduce it, these codes above are work in my enviroment.
Did I do something wrong? Please give me advice. Thank you.