Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 46AF49FA19A for ; Fri, 1 Dec 2006 05:30:11 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-new, port 10024) with ESMTP id 77939-03 for ; Fri, 1 Dec 2006 05:30:04 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from mail63.csoft.net (mail63.csoft.net [205.205.214.4]) by postgresql.org (Postfix) with ESMTP id A450C9FA173 for ; Fri, 1 Dec 2006 05:28:25 -0400 (AST) Received: by mail63.csoft.net (Postfix, from userid 1112) id B3E47F1C0; Fri, 1 Dec 2006 04:28:24 -0500 (EST) Date: Fri, 1 Dec 2006 04:28:24 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary2.csoft.net To: Heikki Linnakangas cc: pgsql-jdbc@postgresql.org, jdevisser@digitalfairway.com Subject: Re: XA end then join fix for WebLogic In-Reply-To: <4520FC19.8070205@enterprisedb.com> Message-ID: References: <4520FC19.8070205@enterprisedb.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200612/2 X-Sequence-Number: 16234 On Mon, 2 Oct 2006, Heikki Linnakangas wrote: > Jan de Visser ran into problems with our XA implementation earlier, and > traced the problem to the sequence of XADataSource method calls that WebLogic > performed. He fixed it with a simple patch that allows start(.., TMJOIN) on a > transaction that was ended earlier using the same connection: > > http://archives.postgresql.org/pgsql-jdbc/2005-12/msg00038.php > > It puzzles me why WebLogic does that, but it seems valid and we should > support it, even though we can't support join in general. > > Here's a more polished version of Jan's patch. I don't have WebLogic to test > this with, so I would appreciate if those that have access to WebLogic could > reproduce the original problem and confirm that this patch fixes it. > Doesn't this allow: xaRes.start(xid, XAResource.TMNOFLAGS); xaRes.end(xid, XAResource.TMFAIL); xaRes.start(xid, XAResource.TMJOIN); xaRes.end(xid, XAResource.TMSUCCESS); xaRes.commit(xid, true); Is that actually a problem or do we assume the TM is smart enough not to do this. Kris Jurka