Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 8912D37BA2D for ; Sun, 11 Nov 2007 18:25:43 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 08937-03 for ; Sun, 11 Nov 2007 18:25:25 -0400 (AST) Received: from mu-out-0910.google.com (mu-out-0910.google.com [209.85.134.191]) by postgresql.org (Postfix) with ESMTP id C377537B9FD for ; Sun, 11 Nov 2007 18:25:39 -0400 (AST) Received: by mu-out-0910.google.com with SMTP id i10so1430842mue for ; Sun, 11 Nov 2007 14:25:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; bh=ib33xFjzwmkNVDW5aKmqcg0RApRxOIdrJpShtbyKEDA=; b=JHfqbc9UrsXvOge1ryP5WYpCir9SViTAkSYujNHZL1QLCW3Zal3yhYJMSvuDw0FIAGqoBg7FXdbz6dgSyIqLBHAbZllrkXNAT9phL2cK4KC8oiTLebgt77HPhWfnM9LZYSadR95gQhkl4vJPZl2InUE5mTXhp33GcjWjs+2kPIs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=bBb7bx13J6hk3Mo+vPQ9W1ClVrEFzl06Hu9t3pUCrVArvgQ5Sxu7n4TEFhOeGximG3zkT1jeP7ZPcObTGJr9pEYZEN9LEIWaqDtMkSUTRrBqkdcgzVeyiZ/6I/43OC8zVdIGtwZKFmZGpk0ponbJ/RWLzhT9inC3tdTyROGwCGQ= Received: by 10.86.99.9 with SMTP id w9mr3932861fgb.1194819937172; Sun, 11 Nov 2007 14:25:37 -0800 (PST) Received: from ?10.0.0.10? ( [83.189.164.61]) by mx.google.com with ESMTPS id y6sm9242648mug.2007.11.11.14.25.34 (version=SSLv3 cipher=RC4-MD5); Sun, 11 Nov 2007 14:25:35 -0800 (PST) Subject: Re: XAResource implementation From: =?ISO-8859-1?Q?jo=EBl?= Winteregg To: Heikki Linnakangas Cc: pgsql-jdbc@postgresql.org In-Reply-To: <47275BA6.3030200@enterprisedb.com> References: <1193736934.5565.40.camel@hatman> <4727420A.4060209@enterprisedb.com> <1193757567.5565.46.camel@hatman> <47275A50.2050201@enterprisedb.com> <47275BA6.3030200@enterprisedb.com> Content-Type: text/plain; charset=ISO-8859-1 Date: Sun, 11 Nov 2007 23:25:33 +0100 Message-Id: <1194819933.5545.100.camel@hatman> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200711/49 X-Sequence-Number: 17804 Hello Heikki, As said in my last email, I'm coming back to you because I have new informations about my problem using Atomikos JTA and the postgresql XA driver. At the end, I tryed an other TransactionManager http://docs.codehaus.org/display/BTM/Home and the postgresql XA driver was mostly working with it... So it seems it may comes from Atomikos implementation but I was not able to find out why and where was the problem... I said that BTM TransactionManager was "mostly" working because when I was using the XA implementation, SQL BEGIN and COMMIT where generated arround each SQL query (even if several queries were located inside the same transaction). So at the end, I used the TransactionManager with the "Last Resource Commit Optimization" which allow the use of a pure jdbc driver during transaction (I only have a single DB (1 Phase Commit) so it is 100% safe to use this specificity). In this case, my BEGIN and COMMIT statement where just perfect: BEGIN SELECT .. SELECT .. SELECT .. COMMIT So I was just wondering if my XA problem (BEGIN and COMMIT location when using XA) could come from the postgresql XA driver ? Many thanks for your help and best regards. Joël On Tue, 2007-10-30 at 16:28 +0000, Heikki Linnakangas wrote: > Heikki Linnakangas wrote: > > You said you tried setExclusiveConnectionMode(true), but I think there's > > something wrong with that. If I'm reading the Atomikos source code > > right, in exclusive connection mode it should use > > ExclusiveExternalXAPooledConnectionImp, but in your case it's using > > ExternalXAPooledConnectionImp, which according to the source code is > > used when not in exclusive connection mode. Are you sure you set that > > parameter in the right place? > > Actually ExclusiveExternalXAPooledConnectionImp is mention in the log as > well, so it looks like the Atomikos exclusive connection mode isn't > doing what it's supposed to / isn't doing what we need it to. >