Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-5553

System property for client tracing -Dderby.client.traceDirectory does not work with XADataSource

    Details

    • Urgency:
      Normal
    • Issue & fix info:
      High Value Fix, Newcomer, Patch Available

      Description

      The client system property -Dderby.client.traceDirectory does not work with ClientXADataSource. No trace files are created if this property is set when making XA Connections.

      I am sure it works fine with DriverManager connections and also checked tracing works fine using connection attributes and XA with. ds.setConnectionAttributes("traceDirectory=./traceDir");

      I have not checked ClientDataSource or ClientConnectionPoolDataSource.

      Attached is a reproduction for this issue.
      mkdir ./traceDir

      javac -g XATemplate.java utilXid.java
      java -Dderby.client.traceDirectory="./traceDir" XATemplate

      You will see that traceDir is empty.
      This came up when debugging DERBY-5552

        Attachments

        1. XATemplate.java
          3 kB
          Kathey Marsden
        2. utilXid.java
          2 kB
          Kathey Marsden
        3. derby-5553_codediff.txt
          2 kB
          Kathey Marsden
        4. derby-5553_diff_withtests.txt
          5 kB
          Kathey Marsden

          Issue Links

            Activity

              People

              • Assignee:
                kmarsden Kathey Marsden
                Reporter:
                kmarsden Kathey Marsden
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: