I made a groovy code that tests whether Connection#commit() throws
excepton when connection has been closed.
http://github.com/taktos/JDBC-Driver-Test/blob/master/ConnectionTest.groovy
I tested in environment below:
Oracle 10g XE (ojdbc14.jar and ojdbc6.jar)
MySQL 5.1 (mysql-connector-java-5.1.10.jar)
h2database (h2-1.2.121.jar)
PostgreSQL 8.3 (postgresql-8.3.605.jdbc4.jar)
Drivers other than PosrgreSQL throws exception as I had expected, but
PostgreSQL didn't throw exception.
Regards,
takiguchi