Received: from localhost (unknown [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 78F2C9F9C2C for ; Mon, 17 Sep 2007 08:15:59 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 31011-07 for ; Mon, 17 Sep 2007 08:15:55 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by postgresql.org (Postfix) with ESMTP id B8F8F9F9BFC for ; Mon, 17 Sep 2007 08:15:55 -0300 (ADT) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1IXEZv-0002ps-21 for pgsql-jdbc@postgresql.org; Mon, 17 Sep 2007 13:15:47 +0200 Received: from 83-244-179-210.cust-83.exponential-e.net ([83.244.179.210]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 17 Sep 2007 13:15:47 +0200 Received: from teknokrat by 83-244-179-210.cust-83.exponential-e.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 17 Sep 2007 13:15:47 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-jdbc@postgresql.org From: teknokrat Subject: Re: making the XARessource serializable Date: Mon, 17 Sep 2007 12:15:33 +0100 Lines: 22 Message-ID: References: <46EE5482.9060603@enterprisedb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 83-244-179-210.cust-83.exponential-e.net User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) In-Reply-To: <46EE5482.9060603@enterprisedb.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.998 tagged_above=0 required=5 tests=AWL=1.300, BAYES_00=-2.599, FORGED_YAHOO_RCVD=2.297 X-Spam-Level: X-Archive-Number: 200709/82 X-Sequence-Number: 17504 Heikki Linnakangas wrote: > teknokrat wrote: >> Is there any reason that the postgresql implementation of XAResource is >> not serializable? We are having issues with XARecovery in Arjuna because >> of this. What is required to make PGXAConnection serializable? > > PGXAConnection represents a physical connection to the database, so you > certainly can't make that Serializable. > > What kind of issues are you having in Arjuna? It can't depend on > serialization of XAResources; there's nothing in the spec saying an > XAResource implementation needs to be serializable, and a quick look at > other DBMS XAResource implementations suggests that they generally aren't. > From what i have managed to make out, Arjuna has a xa recovery module that can recover resources if the XAResource is serializable. Things get more complicated if its not. I've recompiled the jdbc drivers, making PGXAConnection serializable and it worked. This is a link illustrating the behaviour we were getting http://wiki.jboss.org/wiki/Wiki.jsp?page=TxNonSerializableXAResource