Handling network errors during initial connection and ongoing use
В списке pgsql-jdbc по дате отправления:
| От | Adrian Custer |
|---|---|
| Тема | Handling network errors during initial connection and ongoing use |
| Дата | |
| Msg-id | 1176821942.5522.32.camel@blackpad обсуждение исходный текст |
| Список | pgsql-jdbc |
Hey all,
I'm working on fixing an application that uses jdbc so it will provide
users with a better understanding of what is wrong when things go wrong.
However, I cannot find any information on elegant ways to handle the
'unreliable' part of tcp/ip.
Is there some common strategy to handle network errors during setup or
use of jdbc?
Specifically, I imagine all java applications using jdbc would have to
handle:
during initial connection
no network
no dns
host name unknown
no answer on port
answer on port not postgresql
bad authentication
(wrong username/password if these are distinct)
user doesn't have permissions to read database
during ongoing use
network failure
server failure
Could anyone point me toward documents/topic which cover these issues?
Thank you,
adrian custer
В списке pgsql-jdbc по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера