Re: Simple DB presence verifier.

Поиск
Список
Период
Сортировка
От Damian C
Тема Re: Simple DB presence verifier.
Дата
Msg-id 2bbc8f530703051159t6198523fk95eebc41b6dfc500@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Simple DB presence verifier.  ("Abbas" <abbas@enterprisedb.com>)
Список pgsql-novice
Many thanks to John, Abbas and Darkangel for their informative replies.

Initially I will simply establish a socket to port 5432 of the server.
This is trivial to do in Java, quick to succeed (or fail), and
provides appropriate information. Something (notionally) like this
(for future googlers !!!)...
<snip>
try {
  InetAddress address = InetAddress.getByName("192.168.1.2");
  Socket dbSocket = new Socket(address, 5432);
  dbSocket.close();
  return true;
} catch (Exception e) {
  return false;
}
</snip>

Many thanks,
-Damian

В списке pgsql-novice по дате отправления:

Предыдущее
От: "Darkangel Simpson"
Дата:
Сообщение: Re: Simple DB presence verifier.
Следующее
От: "Peter Schonefeld"
Дата:
Сообщение: help with dynamic table name