From: Radoslav Petrov <rado@edno.moe>
To: pgsql-jdbc@postgresql.org
Subject: Re: JPA + Postgres = autocommit?
Date: Tue, 26 Jul 2016 13:22:16 +0300
Message-ID: <579739D8.2060900@edno.moe> (raw)
In-Reply-To: <B204CB55F9D32D41A9A5413EA3F13F8C3BEC6C20@email.sulzer.de>
References: <B204CB55F9D32D41A9A5413EA3F13F8C3BEC6C20@email.sulzer.de>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>
On 25.07.2016 09:54, Davygora, Yuriy wrote:
> And here is an excerpt from the Payara domain.xml:
>
> *<jdbc-connection-pool
> datasource-classname="org.postgresql.ds.PGSimpleDataSource"* name="PDMDataSource" res-type="javax.sql.DataSource">
> Am I missing something here? How do I disable the autocommit? Any help would be greatly appreciated.
>
IMO this part in bold is your problem i.e. the setting of DataSource
class name. I've checked the documentation for PGSimpleDataSource
(https://jdbc.postgresql.org/documentation/publicapi/org/postgresql/ds/PGSimpleDataSource.html)
and there is the following explanation:
Simple DataSource which does not perform connection pooling.
Please note that I don't have experience with Payara/Eclipselink. Maybe
you should use some of the other DataSource implementations in
PostgreJDBC or configure dedicated connection pool like c3p0.
--
Поздрави, | Best regards,
Радослав Петров | Radoslav Petrov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: rado@edno.moe
Subject: Re: JPA + Postgres = autocommit?
In-Reply-To: <579739D8.2060900@edno.moe>
References: <B204CB55F9D32D41A9A5413EA3F13F8C3BEC6C20@email.sulzer.de> <579739D8.2060900@edno.moe>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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