[ http://issues.apache.org/jira/browse/DERBY-1192?page=all ]

Anurag Shekhar updated DERBY-1192:
----------------------------------

    Attachment: derby-1192.diff

Description of patch
Modifed files
java/client/org/apache/derby/client/ClientPooledConnection.java

        added new method getNetXAConnection to return NetXAConnection.
        Modifed constructer to call this method to get NetXAConnection. 
        This method can be overwritten to return a different version of 
NetXAConnection.

java/client/org/apache/derby/client/ClientPooledConnection40.java

        overwrote NetXAConnection to return NetXAConnection40

java/client/org/apache/derby/client/net/NetXAResource.java
        Modifed to have seperate field for NetXAConnection and NetConnection.

java/client/org/apache/derby/client/net/NetXAConnection.java
        This class doesn't extends NetConnection.added a new method to 
instantiate NetConnection.
         Added a new field to hold NetConnection object. Replaced calls 
        super by NetConnection instance name

java/client/org/apache/derby/client/am/Connection.java
        Added abstract methods to perform XA related tasks the methods are 

        writeXACommit_
        readXACommit_
        writeXARollback_
        readXARollback_

        writeXATransactionStart

        These methods are invoked if the connection is detected to be a 
XAConnection.
        java/client/org/apache/derby/client/net/NetXACallInfo.java
        modief to get NetConnection from NetXAConnection to get Input andOutput 
stream

java/client/org/apache/derby/client/net/NetConnection.java
        Implemented newly introduced abstract methods in Connection to 
        call equivalent methods of NetXAConnection. NetXAConnection is obtained 
from NetXAResource.

java/client/org/apache/derby/client/ClientXAConnection.java
        moved close(), closeX(), closeForReuse(), closeResources() from 
NetXAConnection. 
        These method calls Connection's equivalent methods and if the 
connection is
        found to be XAConnection performs additional cleanup.

        modified setIndoubtTransactions to set the hastable of xid's if the 
connection is found to be an xa connection.


added files

java/client/org/apache/derby/client/net/NetXAConnection40.java
        Overwrites createNetConnection method of NetXAConnection to return 
NetConnection40


> Implement jdb4.0 version of NetXAConnection
> -------------------------------------------
>
>          Key: DERBY-1192
>          URL: http://issues.apache.org/jira/browse/DERBY-1192
>      Project: Derby
>         Type: Improvement

>     Reporter: Anurag Shekhar
>     Assignee: Anurag Shekhar
>      Fix For: 10.2.0.0
>  Attachments: derby-1192.diff
>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to