Re: postgresql-jdbc 9.4-1209 src tarball issue
От | Lachezar Dobrev |
---|---|
Тема | Re: postgresql-jdbc 9.4-1209 src tarball issue |
Дата | |
Msg-id | CA+xsaB1G916nBXYk8PZr8pErPrsTz6Xd=XLFSob=UHa08PPUPQ@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: postgresql-jdbc 9.4-1209 src tarball issue (Pavel Raiskup <praiskup@redhat.com>) |
Ответы |
Re: postgresql-jdbc 9.4-1209 src tarball issue
Re: postgresql-jdbc 9.4-1209 src tarball issue |
Список | 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@redhat.com>:
On Friday, July 22, 2016 8:13:58 PM CEST Dave Cramer wrote:
> On 22 July 2016 at 08:43, Pavel Raiskup <praiskup@redhat.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@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc
В списке pgsql-jdbc по дате отправления: