db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anurag Shekhar (JIRA)" <derby-...@db.apache.org>
Subject [jira] Created: (DERBY-1155) Separate XAResource from EmbedXAConnection
Date Tue, 28 Mar 2006 10:13:23 GMT
Separate XAResource from EmbedXAConnection

         Key: DERBY-1155
         URL: http://issues.apache.org/jira/browse/DERBY-1155
     Project: Derby
        Type: Improvement
  Components: JDBC  
 Environment: all
    Reporter: Anurag Shekhar
 Assigned to: Anurag Shekhar 

jdbc4.0 introduces two new methods in javax.sql.PooledConnection. Due to this a new implementation
of PooledConnection and XAConnection for jdbc4.0 is required. According to current hierarchy
XAConnection extends from PooledConnection. Going by similar hierarchy for new classes PooledConnection40
will extend from PooledConnection and XAConnection40 will be extending from PooledConnection40.

This structure forces to replicate all the methods of XAConnection to be present in XAConnection40
too. In the current implementation EmbedXAConnection itself is XAResource. This will cause
to replicate all the XAResource methods to be present in XAConnection40. 

Separating these two implementation will save replication of lots of methods.

See the comments on jira issue 1137 for some more discussion about this issue.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message