PGConnectionPoolDataSource referencing problem

From: Pawel Veselov <pawel(dot)veselov(at)gmail(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: PGConnectionPoolDataSource referencing problem
Date: 2013-08-14 09:11:12
Message-ID: CAMnJ+Bc2FGZ_4WjKzemWe4_yKgU=ZKd2o1YACVBGDOE__OEyBw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Hi.

I believe there may be a problem with
referencing PGConnectionPoolDataSource in JNDI.
The "defaultAutoCommit" flag value is not persisted in the created
reference object, so when reference is looked up, the flag remains at
default (true) value.

I think to fix this, AbstractJdbc23ConnectionPoolDataSource should override
getReference() method, and add the auto-commit flag as a additional
reference address. And PGObjectFactory.loadConnectionPool() should restore
the auto-commit flag from such reference address.

Thank you,
Pawel.

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message John R Pierce 2013-08-14 09:26:25 Re: PGConnectionPoolDataSource referencing problem
Previous Message Dave Cramer 2013-08-14 00:06:29 Re: BUG org.postgresql.Driver.connect() distorts InterruptedException