Re: postgresql-jdbc 9.4-1209 src tarball issue

From: Lachezar Dobrev <l(dot)dobrev(at)gmail(dot)com>
To: Pavel Raiskup <praiskup(at)redhat(dot)com>
Cc: Dave Cramer <pg(at)fastcrypt(dot)com>, List <pgsql-jdbc(at)postgresql(dot)org>, Vladimir Sitnikov <sitnikov(dot)vladimir(at)gmail(dot)com>
Subject: Re: postgresql-jdbc 9.4-1209 src tarball issue
Date: 2016-07-26 17:28:12
Message-ID: CA+xsaB1G916nBXYk8PZr8pErPrsTz6Xd=XLFSob=UHa08PPUPQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

We've been using Glassfish 3 and 4 with PostgreSQL with JPA (Eclipse-Link
or Hibernate) successfully for years.
When declaring the data source we declare a JDBC Connection Pool, and
specify org.postgresql.ds.PGConnectionPoolDataSource as the Datasource
Classname.
The persistence.xml specifies transaction-type="JTA" and has
<jta-data-source> with some well-known name (that you use to declare the
JDBC Resource), no properties commonly.

Also check if your session EJBs are annotated with the
@TransactionManagement(TransactionManagementType.CONTAINER) and have proper
@TransactionAttribute(TransactionAttributeType.REQUIRED) on the methods
that perform changes in the data base. Defaults or not, I've learned not to
assume the defaults…

It will not hurt if you show code, although I can understand the
NDA/Customer/Corporate code limitations.

2016-07-26 16:00 GMT+03:00 Pavel Raiskup <praiskup(at)redhat(dot)com>:

> On Friday, July 22, 2016 8:13:58 PM CEST Dave Cramer wrote:
> > On 22 July 2016 at 08:43, Pavel Raiskup <praiskup(at)redhat(dot)com> wrote:
> > > IOW would it be possible to edit download page so it points to:
> > > https://github.com/pgjdbc/pgjdbc/archive/REL9.4.1209.tar.gz
> > > .. instead of:
> > >
> https://jdbc.postgresql.org/download/postgresql-jdbc-9.4.1209.src.tar.gz
> > > ?
> >
> > I'd prefer not to. I'd like to control the artifacts
>
> I'm confused. :) What is then the preferred way to build from source? To
> use
> the link from 'download.html' page, or to use github's tarballs? Those are
> aimed for different purposes?
>
> Thanks, Pavel
>
>
>
> --
> Sent via pgsql-jdbc mailing list (pgsql-jdbc(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-jdbc
>

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Lachezar Dobrev 2016-07-26 17:49:26 Re: JPA + Postgres = autocommit?
Previous Message Pavel Raiskup 2016-07-26 13:00:34 Re: postgresql-jdbc 9.4-1209 src tarball issue