pg.ddx.io pgsql-jdbc@postgresql.org mailing list archive
help / color / mirror / Atom feedPGConnectionPoolDataSource referencing problem
3+ messages / 2 participants
[nested] [flat]
* PGConnectionPoolDataSource referencing problem
@ 2013-08-14 09:11 Pawel Veselov <pawel.veselov@gmail.com>
0 siblings, 1 reply; 3+ messages in thread
From: Pawel Veselov @ 2013-08-14 09:11 UTC (permalink / raw)
To: 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.
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: PGConnectionPoolDataSource referencing problem
@ 2013-08-14 09:26 John R Pierce <pierce@hogranch.com>
parent: Pawel Veselov <pawel.veselov@gmail.com>
0 siblings, 1 reply; 3+ messages in thread
From: John R Pierce @ 2013-08-14 09:26 UTC (permalink / raw)
To: pgsql-jdbc
On 8/14/2013 2:11 AM, Pawel Veselov wrote:
> flag value is not persisted...
you do realize, 'persisted' is not an actual word?
--
john r pierce 37N 122W
somewhere on the middle of the left coast
--
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: PGConnectionPoolDataSource referencing problem
@ 2013-08-14 20:19 Pawel Veselov <pawel.veselov@gmail.com>
parent: John R Pierce <pierce@hogranch.com>
0 siblings, 0 replies; 3+ messages in thread
From: Pawel Veselov @ 2013-08-14 20:19 UTC (permalink / raw)
To: John R Pierce <pierce@hogranch.com>; +Cc: pgsql-jdbc
On Wed, Aug 14, 2013 at 2:26 AM, John R Pierce <pierce@hogranch.com> wrote:
> On 8/14/2013 2:11 AM, Pawel Veselov wrote:
>
>> flag value is not persisted...
>
> you do realize, 'persisted' is not an actual word?
>
M-W defines persist(4) as a verb, meaning,
"to continue to exist especially past a usual, expected, or normal time"
"persisted" is a legal past participle of the verb "persist". My statement
can
otherwise be rewritten as "flag value does not continue to exist in the
created reference object".
So, I don't really see a problem with the word "persisted". However, I do
see a problem with the "defaultAutoCommit" flag :)
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2013-08-14 20:19 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2013-08-14 09:11 PGConnectionPoolDataSource referencing problem Pawel Veselov <pawel.veselov@gmail.com>
2013-08-14 09:26 ` John R Pierce <pierce@hogranch.com>
2013-08-14 20:19 ` Pawel Veselov <pawel.veselov@gmail.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox