JDBC: Runtime.addShutdoiwnHooks()

From: "Ralf Edmund Stranzenbach" <ralf(at)reswi(dot)de>
To: <pgsql-hackers(at)postgresql(dot)org>
Subject: JDBC: Runtime.addShutdoiwnHooks()
Date: 2001-06-10 20:49:09
Message-ID: 006401c0f1ee$d8531d50$032aa8c0@gwenhwyfar
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

today I had a little problem with the actual JDBC driver. Due to the use of Runtime.addShutdownHooks(), which throws a SecurityException if used within a servlet container (WebLogic Server 5.1 & 6.0), the postgres JDBC driver is unusable in this environments. I spent some minutes looking at the code and came to the conclusion, that ConnectionHook should TRY to register itself, but without the sufficient permissions it should go on without throwing exceptions.

The modified ConnectionHook worked fine for me and my application operates very well from within the WLS container.

With regards,
Ralf E. Stranzenbach

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2001-06-11 02:31:59 Re: Re: New version of contrib-intarray
Previous Message Tom Lane 2001-06-10 20:04:51 Re: fsync vs fdatasync