Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id AC4AC31F0C1 for ; Sun, 13 May 2012 16:10:38 -0300 (ADT) Received: from static-ip-217-118-26-141.inaddr.ip-pool.com ([217.118.26.141] helo=mail.softperience.eu) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1STeBg-0001NP-FU for pgsql-jdbc@postgresql.org; Sun, 13 May 2012 19:10:38 +0000 Received: from radekdesktop.localnet (api241.neoplus.adsl.tpnet.pl [83.26.142.241]) by mail.softperience.eu (Postfix) with ESMTPA id CB804C00035; Sun, 13 May 2012 21:10:18 +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:10:19 +0200 Message-ID: <60775583.hWYqdVicEv@radekdesktop> User-Agent: KMail/4.8.0 (Linux/3.1.10-gentoo-r1; KDE/4.8.1; x86_64; ; ) In-Reply-To: <1986400.Upn4gYaEoZ@radekdesktop> References: <1336576000350-5697657.post@n5.nabble.com> <1336741691434-5702984.post@n5.nabble.com> <1986400.Upn4gYaEoZ@radekdesktop> 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/31 X-Sequence-Number: 22931 Sorry for replaying for self. Dnia niedziela, 13 maja 2012 21:01:16 Rados=C5=82aw Smogura pisze: > 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 ex= ecute > > commit as I want, but at the moment I have some little problems wit= h > > threads and I don't know the reason of these problems. >=20 > Actually non transactional connection makes connections unmanaged by > Glassfish's transaction manager, so EJB as well. Threads? What kind of problems do you have? You should not use threads = in EJB=20 and Web. > > I would to know more about pgConnectionpoolDataSource and pgXADataS= ource > > to > > set correct datasource in Glassfish connection pool. Where can I fi= nd > > documentation about these two kind of DataSource? >=20 > Both are almost same (do not mix it with Polling data source), in fac= t XA is > build on top of PGConnectionPool. Difference between those is transac= tion > managment, XA requires transaction manager as every XA resource and n= eeds > to implement specific interface, PGConnectionPool doesn't require it.= I > can't imagine XA resource without transactions, probably this may wor= k like > autocommit. >=20 > > If I will use a multinode postgres managed by pgpool, which DataSou= rce > > suits my needs? >=20 > There should be no difference, both connection will connect to pgpool= . >=20 > In any case I suggest you to try to use @TransactionAttribute(REQUIRE= S_NEW) > or @TransactionManagement(BEAN). Such application that relies on Glas= sfish > specific feature like non transactional connection will not be portab= le. > > 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= -tp5697 > > 6 > > 57p5702984.html Sent from the PostgreSQL - jdbc mailing list archiv= e at > > Nabble.com.