Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bRogL-0001AA-5F for pgsql-jdbc@arkaria.postgresql.org; Mon, 25 Jul 2016 22:49:05 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bRogK-00041H-Le for pgsql-jdbc@arkaria.postgresql.org; Mon, 25 Jul 2016 22:49:04 +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 1bRofq-0003Tt-4B for pgsql-jdbc@postgresql.org; Mon, 25 Jul 2016 22:48:34 +0000 Received: from mail-qk0-x229.google.com ([2607:f8b0:400d:c09::229]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bRofj-0006An-EQ for pgsql-jdbc@postgresql.org; Mon, 25 Jul 2016 22:48:32 +0000 Received: by mail-qk0-x229.google.com with SMTP id x1so177648058qkb.3 for ; Mon, 25 Jul 2016 15:48:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:subject:from:to:date:in-reply-to:references:mime-version :content-transfer-encoding; bh=sVRcKMRKqHo+cih+OOJsDawLEmpiIZjKYxzZTfq03nA=; b=eNxxgLWfwHaFdn3WY4OwzR+2IqxG19ej1g5tiDZxJc0Y24mitgDucCa1foxiYzaUNI kppf+Mlf4eemnW1lF+xv20RNFI0aakT+jT8f9ioue5yO+OYcnaylhywqzNHWNZzfPlf5 nnQzgh6rrU7sb+0Z9mtSHRozALtcSZHqhBwd+oyTAAw+SsrcRnntGUxcsSgH7feV4TTW yxV6dxh3NXPj9168J8Yxp5nC3DSJsZj2yY7vnCQhJhFo2tOZ+kZx1MoDl985VjyeSvzq R/ahEZ5/cu/0WSRbRocB2o5jZRzLU/sPYVz/o/rw5QFH9cnkT10ax8gumfMUlSUTzfnS eRFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:mime-version:content-transfer-encoding; bh=sVRcKMRKqHo+cih+OOJsDawLEmpiIZjKYxzZTfq03nA=; b=lerZ/qzeDredjS7AAH/d3qxjd5VOZ0Tc2vkXGt+lMs+PWQe1lPcCGLyP2DegN9p2bB rSZ+8hiTR6ETUaKmWzCwJD4gCuUFt6YTK8mo+w6R7suRs054YimwKU+4wuKtx9xl3/fw cFQYVljbHR0Xsd5iZ1ewE0FaIjViIuLslJf1TFb5sUEpm0B+XM8/hC/EsCJy5qA3qzKe nUBaYiRU5PbstApAshF/Qvw0RQTnYc1i1Jh2wBKKHVAi3IYSSlg6zWrcuRVvJgz1nxYk JoVvSduhgzCv5iHqALTLZ35t32EFbqx2KKCiEJKHY0N+E0OyHTmvOgo0UCS254DpQNO6 IrAA== X-Gm-Message-State: AEkoouuQdNVCmjhqCpueXkWif4BGWJDf2B2HGwY8z3WFAZzbT9d0PoT/zzXOdpEWUmfKcQ== X-Received: by 10.55.148.67 with SMTP id w64mr24545253qkd.137.1469486906388; Mon, 25 Jul 2016 15:48:26 -0700 (PDT) Received: from roblaptop ([189.101.207.228]) by smtp.gmail.com with ESMTPSA id u44sm17039924qtc.27.2016.07.25.15.48.24 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 25 Jul 2016 15:48:25 -0700 (PDT) Message-ID: <1469486901.7543.12.camel@gmail.com> Subject: Re: JPA + Postgres = autocommit? From: rob stone To: John R Pierce , pgsql-jdbc@postgresql.org Date: Tue, 26 Jul 2016 08:48:21 +1000 In-Reply-To: References: <1469483299.7543.9.camel@gmail.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.20.3-1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-Pg-Spam-Score: -2.7 (--) 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 Mon, 2016-07-25 at 14:53 -0700, John R Pierce wrote: > 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. > True, however issuing a BEGIN turns autocommit off. > 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 > > Yes. I'd experiment with or maybe value="off" and see if it makes a difference. > --  > 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