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 98E0E9DCF7E for ; Mon, 28 Nov 2005 17:23:07 -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 48425-01-10 for ; Mon, 28 Nov 2005 17:23:06 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail.digitalfairway.ca (ns.digitalfairway.ca [207.164.133.170]) by postgresql.org (Postfix) with ESMTP id D542A9DD658 for ; Mon, 28 Nov 2005 16:06:40 -0400 (AST) Received: from toronto.toronto.digitalfairway.ca (unknown [192.168.100.10]) by mail.digitalfairway.ca (Postfix) with ESMTP id 8BDFE950E1 for ; Mon, 28 Nov 2005 15:06:41 -0500 (EST) Received: from localhost (toronto.toronto.digitalfairway.ca [127.0.0.1]) by toronto.toronto.digitalfairway.ca (Postfix) with ESMTP id 69AFAB69C3 for ; Mon, 28 Nov 2005 15:06:41 -0500 (EST) Received: from toronto.toronto.digitalfairway.ca ([127.0.0.1]) by localhost (toronto.toronto.digitalfairway.ca [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14186-09 for ; Mon, 28 Nov 2005 15:06:41 -0500 (EST) Received: from [192.168.100.50] (unknown [192.168.100.50]) (using SSLv3 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by toronto.toronto.digitalfairway.ca (Postfix) with ESMTP id 477FAB65FB for ; Mon, 28 Nov 2005 15:06:41 -0500 (EST) From: Jan de Visser To: pgsql-jdbc@postgresql.org Subject: Re: pgsql XA with weblogic 8.1? Date: Mon, 28 Nov 2005 15:06:39 -0500 User-Agent: KMail/1.8.3 References: <200511281217.39287.jdevisser@digitalfairway.com> <200511281419.15721.jdevisser@digitalfairway.com> In-Reply-To: <200511281419.15721.jdevisser@digitalfairway.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200511281506.39492.jdevisser@digitalfairway.com> X-Virus-Scanned: amavisd-new at digitalfairway.ca X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0 required=5 tests=[none] X-Spam-Score: 0 X-Spam-Level: X-Archive-Number: 200511/218 X-Sequence-Number: 14316 On Monday 28 November 2005 14:19, Jan de Visser wrote: > On Monday 28 November 2005 12:39, Kris Jurka wrote: > > On Mon, 28 Nov 2005, Jan de Visser wrote: > > > Any of you have experience yet using Heikki's newfangled XA > > > implementation with weblogic 8.1? I'm getting the exception below. > > > > > > ERROR: Could not establish connection with database core > > > Nested exception: <> > > > Unexpected exception while enlisting XAConnection > > > java.sql.SQLException: XA error: XAER_RMERR : A resource manager error > > > has occured in the transaction branch start() failed on resource > > > 'dfc.core': XAER_RMERR : A resource manager error has occured in the > > > transaction branch > > > org.postgresql.xa.PGXAException: suspend/resume and join not > > > implemented at > > > org.postgresql.xa.PGXAConnection.start(PGXAConnection.java:103) > > > > I don't use weblogic, but you might try addding either or both of these > > parameters: > > > > http://e-docs.bea.com/wls/docs90/wlsmbeanref/core/index.html > > JDBCXAParamsBean.XaEndOnlyOnce > > JDBCXAParamsBean.KeepXaConnTillTxComplete > > Thanks, but that didn't work. > > It seems that wl calls a start( xid, TMRESUME ) (or TMJOIN, but I guess > TMRESUME would make more sense) even though it never called end( xid, > TMSUSPEND ) before (this is from browsing the driver code). > > Would it make sense to silently ignore a TMRESUME if the same xid is still > active? I can cook up a patch... Well, that wasn't it. I debugged a bit, and it turns out that WL sends a=20 start(xid,TMJOIN) when committing entity EJBs. Don't ask me why (I'm not an= =20 XA expert by any stretch of the imagination). What I did is took the=20 pragmatic approach, and allow a TMJOIN if the connection is in STATE_ENDED= =20 and if the xid is the same as the current xid. This seems to work. Would that be acceptable/make sense? JdV!! =2D-=20 =2D------------------------------------------------------------- Jan de Visser =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 jdevisser@digitalfair= way.com =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Baruk Khazad! Khazad ai-menu! =2D-------------------------------------------------------------