JDBC: Runtime.addShutdoiwnHooks() - Mailing list pgsql-hackers

From Ralf Edmund Stranzenbach
Subject JDBC: Runtime.addShutdoiwnHooks()
Date
Msg-id 006401c0f1ee$d8531d50$032aa8c0@gwenhwyfar
Whole thread Raw
List 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
 

pgsql-hackers by date:

Previous
From: "Dale Johnson"
Date:
Subject: Re: Re: REPLACE INTO table a la mySQL
Next
From: "Josh Berkus"
Date:
Subject: Re: Re: [SQL] behavior of ' = NULL' vs. MySQL vs. Standards