users@jpa-spec.java.net

[jpa-spec users] portable way to restore XAResources required

From: Christian Romberg <cromberg_at_versant.com>
Date: Tue, 19 Jun 2012 09:49:13 +0200

Hi Paul, all,

JTA 1.1 does not mandate, how an XAResource is restored after a system
failure for the purpose of
transaction recovery conducted by the transaction manager.

Common suggestions and implementations (e.g. JBoss) use the following
strategies:

1. If the XAResource was acquired by a JNDI-named pool, the JNDI name can
be stored in the
transaction log file of the transaction manager

2. If the XAResource is Serializable, then the XAResource can be serialized
into the transaction log
file of the transaction manager.

Nothing of this is mandated by the JTA spec.

Any transaction manager implementation needs a portable way to restore
XAResources.

If 1. alone would be mandatory, this would not work for us, because we
don't use a JNDI-based pool
but register our XAResource instances directly with the Transaction.

I suggest to mandate the following behavior for the transaction manager
when writing it's log file:

"If the XAResource was acquired via a JNDI named pool or the XAResource is
serializable, the
transaction manager might store the JNDI name, or the serialized XAResource
in it's transaction
log file. If the XAResource was not acquired via a JNDI named pool and is
not serializable, an
exception will be thrown".

Thank you!

Regards,

Christian

-- 
Christian Romberg
Chief Engineer | Versant GmbH
(T) +49 40 60990-0
(F) +49 40 60990-113
(E) cromberg_at_versant.com
www.versant.com<http://www.google.com/url?q=http%3A%2F%2Fwww.versant.com%2F&sa=D&sntz=1&usg=AFrqEzeeEBc_gN_8mxtt8xDB0tjXDXQVlw>|
www.db4o.com<http://www.google.com/url?q=http%3A%2F%2Fwww.db4o.com%2F&sa=D&sntz=1&usg=AFrqEzdo3Q40RwKQPBtnPIuBYQd1diFxJQ>
-- 
Versant
GmbH is incorporated in Germany. Company registration number: HRB
54723, Amtsgericht Hamburg. Registered Office: Halenreie 42, 22359
Hamburg, Germany. Geschäftsführer: Bernhard Wöbker, Volker John
CONFIDENTIALITY
NOTICE: This e-mail message, including any attachments, is for the sole
use of the intended recipient(s) and may contain confidential or
proprietary information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the intended recipient,
immediately contact the sender by reply e-mail and destroy all copies of
the original message.