Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bRnoA-00071F-Qo for pgsql-jdbc@arkaria.postgresql.org; Mon, 25 Jul 2016 21:53:06 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bRnoA-0005Ga-6R for pgsql-jdbc@arkaria.postgresql.org; Mon, 25 Jul 2016 21:53:06 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bRno9-0005GP-OR for pgsql-jdbc@postgresql.org; Mon, 25 Jul 2016 21:53:05 +0000 Received: from hogranch.com ([75.101.82.47]) by makus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bRno7-0005G3-4c for pgsql-jdbc@postgresql.org; Mon, 25 Jul 2016 21:53:04 +0000 Received: from [192.168.0.2] (porker [192.168.0.2]) by hogranch.com (8.11.6/8.11.6) with ESMTP id u6PLqwv11556 for ; Mon, 25 Jul 2016 14:52:59 -0700 Subject: Re: JPA + Postgres = autocommit? To: pgsql-jdbc@postgresql.org References: <1469483299.7543.9.camel@gmail.com> From: John R Pierce Message-ID: Date: Mon, 25 Jul 2016 14:53:01 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <1469483299.7543.9.camel@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-HawgScanner-Information: Please contact the ISP for more information X-HawgScanner: Found to be clean X-Pg-Spam-Score: -3.2 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org On 7/25/2016 2:48 PM, rob stone wrote: > I know nothing about Payara, etc. but the "traditional" way of handling > this in an application is to:- > > BEGIN; > > Do your inserts/updates etc. > > COMMIT; or if you caught any errors during the inserting/updating, then > > ROLLBACK; Not in Java/JDBC applications. Rather, they have the concept of autocommit on/off, you configure it on a per connection basis. commit() and rollback() are API calls to the java database connection object. the real question here is how you convince the OP's stack of tools to disable autocommit, and that I can't help with, but I'm sure its some field in one of those XML files -- john r pierce, recycling bits in santa cruz -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc