PGConnectionPoolDataSource referencing problem - Mailing list pgsql-jdbc

From Pawel Veselov
Subject PGConnectionPoolDataSource referencing problem
Date
Msg-id CAMnJ+Bc2FGZ_4WjKzemWe4_yKgU=ZKd2o1YACVBGDOE__OEyBw@mail.gmail.com
Whole thread Raw
Responses Re: PGConnectionPoolDataSource referencing problem  (John R Pierce <pierce@hogranch.com>)
List 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.

pgsql-jdbc by date:

Previous
From: Dave Cramer
Date:
Subject: Re: BUG org.postgresql.Driver.connect() distorts InterruptedException
Next
From: John R Pierce
Date:
Subject: Re: PGConnectionPoolDataSource referencing problem