From: | teknokrat <teknokrat(at)yahoo(dot)com> |
---|---|
To: | pgsql-jdbc(at)postgresql(dot)org |
Subject: | Re: making the XARessource serializable |
Date: | 2007-09-17 11:15:33 |
Message-ID: | fclnkm$fms$1@sea.gmane.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
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
From | Date | Subject | |
---|---|---|---|
Next Message | Heikki Linnakangas | 2007-09-17 11:58:18 | Re: making the XARessource serializable |
Previous Message | Heikki Linnakangas | 2007-09-17 10:18:42 | Re: making the XARessource serializable |