RE: jdbc and unix signals

Поиск
Список
Период
Сортировка
От Nikk Anderson
Тема RE: jdbc and unix signals
Дата
Msg-id DA1274E682D3734B8802904A9B36124C8DA8@nic-nts1.nic.parallel.ltd.uk
обсуждение исходный текст
Ответ на jdbc and unix signals  (Nikk Anderson <Nikk.Anderson@parallel.ltd.uk>)
Ответы RE: jdbc and unix signals
Список pgsql-jdbc

Hi,

Peter Eisentraut writes:
>You can't catch signals in Java, because not all systems have signals.
>You might be able to write native methods to do so, but consider
>reconsidering your design.

You can catch OS signals in java, although there are different signals for each OS.  The following packages have signal functionality: sun.misc.Signal, sun.misc.SignalHandler.

I have created test programs which can handle various signals sucessfully - and it is these test programs which work (i.e. catch signals) when no jdbc driver is loaded, and do not when the driver is loaded.

Check out the following url for a discussion about signals.
http://forums.java.sun.com/thread.jsp?forum=37&thread=70586

Cheers

Nikk

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

Предыдущее
От: Dave Cramer
Дата:
Сообщение: Re: JDBC and stored procedures
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: jdbc and unix signals