X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 8A1259DCD1F for ; Fri, 10 Feb 2006 10:19:29 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 90099-04 for ; Fri, 10 Feb 2006 10:19:33 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from smtp-4.hut.fi (smtp-4.hut.fi [130.233.228.94]) by postgresql.org (Postfix) with ESMTP id D11FD9DCD3D for ; Fri, 10 Feb 2006 10:19:26 -0400 (AST) Received: from localhost (putosiko.hut.fi [130.233.228.114]) by smtp-4.hut.fi (8.12.10/8.12.10) with ESMTP id k1AEJTPp032381; Fri, 10 Feb 2006 16:19:29 +0200 Received: from smtp-4.hut.fi ([130.233.228.94]) by localhost (putosiko.hut.fi [130.233.228.114]) (amavisd-new, port 10024) with LMTP id 00600-07-3; Fri, 10 Feb 2006 16:19:28 +0200 (EET) Received: from kosh.hut.fi (kosh.hut.fi [130.233.228.10]) by smtp-4.hut.fi (8.12.10/8.12.10) with ESMTP id k1AEIUpc032241; Fri, 10 Feb 2006 16:18:30 +0200 Date: Fri, 10 Feb 2006 16:18:30 +0200 (EET) From: Heikki Linnakangas To: Xavier Bugaud cc: pgsql-jdbc@postgresql.org Subject: Re: Full XA availability ? In-Reply-To: <60BA566AF1B3934FA866BAC174836759026F9F@mail.parabolemaurice.com> Message-ID: References: <60BA566AF1B3934FA866BAC174836759026F9F@mail.parabolemaurice.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-TKK-Virus-Scanned: by amavisd-new-2.1.2-hutcc at putosiko.hut.fi X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.158 required=5 tests=[AWL=0.158] X-Spam-Score: 0.158 X-Spam-Level: X-Archive-Number: 200602/79 X-Sequence-Number: 14676 On Fri, 10 Feb 2006, Xavier Bugaud wrote: >> Many other big JDBC implementations don't support it either, >> or fake it, or support it only partially. Therefore no transaction >> coordinator implementation can rely on transaction interleaving or >> suspend/resume anyway, or at least have to provide a flag to >> work around >> it. Therefore there's very little practical value in actually >> implementing them, beside being able to tick the "fully XA-compliant" >> checkbox in marketing material. > > All the application servers need XA for distributed transactions, so I > think there is a huge practical value to be "fully XA compliant". > It's a very common practise when using J2EE container managed > transactions to suspend the current transaction and start a new one for > example. I believe that's a different suspend/resume you're talking about. Are you thinking of for example an EJB calling another EJB that's running on a different application server, with REQUIRES_NEW transaction attribute? You would indeed suspend and resume the global J2EE transaction, but that doesn't necessarily mean that the application server has to suspend/resume the XAResources involved. Suspending/resuming the global J2EE transaction and suspending/resuming a resource manager are two different things, you can have one without the other. I don't know how the above scenario is actually implemented in typical application servers. Also, some application servers are implemented so that they always issue suspend/resume on the resource manager, even in non-distributed case. See the recent thread on WebLogic & XA driver: http://archives.postgresql.org/pgsql-jdbc/2005-11/msg00214.php There's a patch later in that thread that implements suspend/resume for the simple case, where you suspend one transaction and resume the same transaction later, doing nothing with the connection in between. The patch hasn't made it to CVS yet. - Heikki