db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel John Debrunner <...@apache.org>
Subject Re: NetXAResource - duplicate constants?
Date Wed, 22 Feb 2006 22:50:49 GMT
Daniel John Debrunner wrote:

> Anyone have any idea why the client's NetXAResource has its own version
> of XA return value constants, that seem to have the same value as the
> constants in javax.transaction.xa.XAException?

Following the code more, the XA return value set in the code point
XARETVAL is obtained from the XAException.errorCode. Thus the client
should not have its own set of constants, and instead just use the ones
defined in XAException. This duplicate set of constants and the
conversion between the two (identical values) is actually responsible
for DERBY-1024. The bug is that the conversion code does not have a case
statement for the outside value, the server is returning the correct value.

Dan.



Mime
View raw message