Can I check if a db connection is working?
От | Jacob Vennervald Madsen |
---|---|
Тема | Can I check if a db connection is working? |
Дата | |
Msg-id | AA6075F044E39D4DBBA876CA427A0E02057BED@gop-server.GOP-server.local обсуждение исходный текст |
Ответы |
Re: Can I check if a db connection is working?
|
Список | pgsql-jdbc |
Hi List I have a database handler with a persistent connection to a Postgres database. The problem is that if the TCP/IP connection between the database and the application is temporaryly down then I have torestart my application afterwards to reestablish the connection. This happens for example when the database is restartedwith mode fast. Is there any way to check if the database connection is working before using it? Best regards, Jacob Vennervald Madsen Systems Developer GoPinocchio Norrebrogade 45 DK-2200 Copenhagen www.gopinocchio.com +45 26750106 ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager.
В списке pgsql-jdbc по дате отправления: