Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id E1FAF137D6F5 for ; Mon, 14 May 2012 10:55:40 -0300 (ADT) Received: from sam.nabble.com ([216.139.236.26]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1STvkR-0003Rg-1y for pgsql-jdbc@postgresql.org; Mon, 14 May 2012 13:55:40 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1STvkD-0005xx-Nd for pgsql-jdbc@postgresql.org; Mon, 14 May 2012 06:55:25 -0700 Date: Mon, 14 May 2012 06:55:25 -0700 (PDT) From: mephysto To: pgsql-jdbc@postgresql.org Message-ID: <1337003725711-5708644.post@n5.nabble.com> In-Reply-To: References: <1336590679429-5698263.post@n5.nabble.com> <9cec544c4e1685dd4ea0c67b9fa5a537@mail.softperience.eu> <1336741691434-5702984.post@n5.nabble.com> <1986400.Upn4gYaEoZ@radekdesktop> <60775583.hWYqdVicEv@radekdesktop> Subject: Re: Fwd: Postgres JDBC, WS and commit MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: 0.9 (/) X-Archive-Number: 201205/37 X-Sequence-Number: 22937 Excuse me but I'm really confused, I did many tests, but I'm not sure about results. If I understand it, using glassfish JDBC connection pool, if a thread requires a connection to database, glassfish assign one from pool to thread and commit is executed at the end of thread, not on every stored function launch. I would, if it is possible, the commit is executed every write stored function. A this point, I would to know if this goal is achievable and if use of commit that I wand is admissible. Finally, I would to know, why commit is execute by deafult only one time at the end of thread. Thanks in advance and excuse me newly. Mephysto -- View this message in context: http://postgresql.1045698.n5.nabble.com/Postgres-JDBC-WS-and-commit-tp5697657p5708644.html Sent from the PostgreSQL - jdbc mailing list archive at Nabble.com.