Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id B143231F0C1 for ; Sun, 13 May 2012 16:01:40 -0300 (ADT) Received: from static-ip-217-118-26-141.inaddr.ip-pool.com ([217.118.26.141] helo=mail.softperience.eu) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1STe2y-0001lm-QG for pgsql-jdbc@postgresql.org; Sun, 13 May 2012 19:01:39 +0000 Received: from radekdesktop.localnet (api241.neoplus.adsl.tpnet.pl [83.26.142.241]) by mail.softperience.eu (Postfix) with ESMTPA id D8B79C00035; Sun, 13 May 2012 21:01:19 +0200 (CEST) From: =?utf-8?B?UmFkb3PFgmF3?= Smogura To: pgsql-jdbc@postgresql.org Cc: mephysto Subject: Re: Fwd: Postgres JDBC, WS and commit Date: Sun, 13 May 2012 21:01:16 +0200 Message-ID: <1986400.Upn4gYaEoZ@radekdesktop> User-Agent: KMail/4.8.0 (Linux/3.1.10-gentoo-r1; KDE/4.8.1; x86_64; ; ) In-Reply-To: <1336741691434-5702984.post@n5.nabble.com> References: <1336576000350-5697657.post@n5.nabble.com> <9cec544c4e1685dd4ea0c67b9fa5a537@mail.softperience.eu> <1336741691434-5702984.post@n5.nabble.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" X-Pg-Spam-Score: -0.8 (/) X-Archive-Number: 201205/30 X-Sequence-Number: 22930 Dnia pi=C3=84=C2=85tek, 11 maja 2012 06:08:11 mephysto pisze: > Hello newly, > I tried to enable "Non Transacitonal Connection" and my function exec= ute > commit as I want, but at the moment I have some little problems with = threads > and I don't know the reason of these problems. Actually non transactional connection makes connections unmanaged by=20= Glassfish's transaction manager, so EJB as well. > I would to know more about pgConnectionpoolDataSource and pgXADataSou= rce to > set correct datasource in Glassfish connection pool. Where can I find= > documentation about these two kind of DataSource? Both are almost same (do not mix it with Polling data source), in fact = XA is=20 build on top of PGConnectionPool. Difference between those is transacti= on=20 managment, XA requires transaction manager as every XA resource and nee= ds to=20 implement specific interface, PGConnectionPool doesn't require it. I ca= n't=20 imagine XA resource without transactions, probably this may work like=20= autocommit. > If I will use a multinode postgres managed by pgpool, which DataSourc= e suits > my needs? There should be no difference, both connection will connect to pgpool. In any case I suggest you to try to use @TransactionAttribute(REQUIRES_= NEW) or=20 @TransactionManagement(BEAN). Such application that relies on Glassfish= =20 specific feature like non transactional connection will not be portable= . > Thanks in advance. >=20 > Meph >=20 >=20 >=20 >=20 > -- > View this message in context: > http://postgresql.1045698.n5.nabble.com/Postgres-JDBC-WS-and-commit-t= p56976 > 57p5702984.html Sent from the PostgreSQL - jdbc mailing list archive = at > Nabble.com.