Derby
  1. Derby
  2. DERBY-1018

Client xa Statement.getConnection and DatabaseMetadata.getConnection returns underlying NetXAConnection instead of Logical connection

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Duplicate
    • Affects Version/s: 10.1.3.1, 10.2.1.6, 10.3.2.1, 10.4.1.3
    • Fix Version/s: None
    • Component/s: JDBC, Network Client
    • Labels:
      None

      Description

      For client XA a Statement.getConnection() and DatabaseMetaData.getConnection() return a NetXAConnection instead of a LogicalConnection.

      e.g. for a connection obtained from a ClientXADataSource:

      Statement stmt = conn.createStatement();
      System.out.println("conn:" + conn + "stmt.getConnection():" + stmt.getConnection());

      yields

      conn:org.apache.derby.client.am.LogicalConnection@11b9fb1stmt.getConnection():org.apache.derby.client.net.NetXAConnection@540408

        Issue Links

          Activity

          Hide
          Kristian Waagan added a comment -

          Updating affected versions based on a new bug report (duplicate, DERBY-3431).

          Show
          Kristian Waagan added a comment - Updating affected versions based on a new bug report (duplicate, DERBY-3431 ).
          Hide
          Rick Hillegas added a comment -

          Attaching ClientXADataSourceTest.java, which demonstrates that this bug has been fixed.

          Show
          Rick Hillegas added a comment - Attaching ClientXADataSourceTest.java, which demonstrates that this bug has been fixed.
          Hide
          Rick Hillegas added a comment -

          It appears to me that this bug has been fixed by the work on related issues.

          Show
          Rick Hillegas added a comment - It appears to me that this bug has been fixed by the work on related issues.

            People

            • Assignee:
              Unassigned
              Reporter:
              Kathey Marsden
            • Votes:
              2 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development