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

          Kathey Marsden created issue -
          Kathey Marsden made changes -
          Field Original Value New Value
          Fix Version/s 10.1.3.0 [ 12310616 ]
          Kristian Waagan made changes -
          Link This issue incorporates DERBY-3431 [ DERBY-3431 ]
          Kristian Waagan made changes -
          Affects Version/s 10.4.0.0 [ 12312540 ]
          Affects Version/s 10.3.2.1 [ 12312876 ]
          Component/s JDBC [ 11407 ]
          Rick Hillegas made changes -
          Attachment ClientXADataSourceTest.java [ 12414110 ]
          Rick Hillegas made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Duplicate [ 3 ]
          Kathey Marsden made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Gavin made changes -
          Workflow jira [ 12347357 ] Default workflow, editable Closed status [ 12801384 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development