pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Radosław Smogura <rsmogura@softperience.eu>
To: pgsql-jdbc@postgresql.org
Cc: mephysto <mephystoonhell@gmail.com>
Subject: Re: Fwd: Postgres JDBC, WS and commit
Date: Sun, 13 May 2012 21:10:19 +0200
Message-ID: <60775583.hWYqdVicEv@radekdesktop> (raw)
In-Reply-To: <1986400.Upn4gYaEoZ@radekdesktop>
References: <1336576000350-5697657.post@n5.nabble.com>
	<1336741691434-5702984.post@n5.nabble.com>
	<1986400.Upn4gYaEoZ@radekdesktop>

Sorry for replaying for self.

Dnia niedziela, 13 maja 2012 21:01:16 Radosław Smogura pisze:
> Dnia piątek, 11 maja 2012 06:08:11 mephysto pisze:
> > Hello newly,
> > I tried to enable "Non Transacitonal Connection" and my function execute
> > 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
> Glassfish's transaction manager, so EJB as well.
Threads? What kind of problems do you have? You should not use threads in EJB 
and Web.

> > I would to know more about pgConnectionpoolDataSource and pgXADataSource
> > 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
> build on top of PGConnectionPool. Difference between those is transaction
> managment, XA requires transaction manager as every XA resource and needs
> to implement specific interface, PGConnectionPool doesn't require it. I
> can't imagine XA resource without transactions, probably this may work like
> autocommit.
> 
> > If I will use a multinode postgres managed by pgpool, which DataSource
> > 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 @TransactionManagement(BEAN). Such application that relies on Glassfish
> specific feature like non transactional connection will not be portable.
> > Thanks in advance.
> > 
> > Meph
> > 
> > 
> > 
> > 
> > --
> > 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 archive at
> > Nabble.com.



view thread (17+ messages)  latest in thread

Message-ID: <60775583.hWYqdVicEv@radekdesktop>
Permalink:  ../60775583.hWYqdVicEv@radekdesktop/
Also on:    postgresql.org/message-id/60775583.hWYqdVicEv@radekdesktop

 · 

reply

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: rsmogura@softperience.eu, mephystoonhell@gmail.com
  Subject: Re: Fwd: Postgres JDBC, WS and commit
  In-Reply-To: <60775583.hWYqdVicEv@radekdesktop>
  References: <1336576000350-5697657.post@n5.nabble.com> <1336741691434-5702984.post@n5.nabble.com> <1986400.Upn4gYaEoZ@radekdesktop> <60775583.hWYqdVicEv@radekdesktop>

* 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