Re: making the XARessource serializable

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: making the XARessource serializable
Дата
Msg-id 46EE6BDA.5020503@enterprisedb.com
обсуждение исходный текст
Ответ на Re: making the XARessource serializable  (teknokrat <teknokrat@yahoo.com>)
Ответы Re: making the XARessource serializable  (teknokrat <teknokrat@yahoo.com>)
Список pgsql-jdbc
teknokrat wrote:
> 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.

What exactly did you do to "make PGXAConnection serializable"? If you
just add "implements Serializable", you'll get an
NotSerializableException when you actually try to serialize it.

> This is a link illustrating
> the behaviour we were getting
> http://wiki.jboss.org/wiki/Wiki.jsp?page=TxNonSerializableXAResource

According to that, you need to provide an implementation of
com.arjuna.ats.jta.recovery.XAResourceRecovery. Apparently there's a
simple implementation that looks up the XADataSource implementation with
JNDI. See JBoss Transaction API Programmers Guide, chapter 4, title
"Shipped XAResourceRecovery implementations".

I'm surprised Arjuna/JBoss doesn't just connect to every database listed
in JNDI, or at least all those that were used in the transactions that
need recovery. That's what other app servers do, I believe.

--
  Heikki Linnakangas
  EnterpriseDB   http://www.enterprisedb.com

В списке pgsql-jdbc по дате отправления:

Предыдущее
От: teknokrat
Дата:
Сообщение: Re: making the XARessource serializable
Следующее
От: teknokrat
Дата:
Сообщение: Re: making the XARessource serializable