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

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

    XMLWordPrintableJSON

Details

    • Normal
    • 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. derby-5553_diff_withtests.txt
          5 kB
          Katherine Marsden
        2. derby-5553_codediff.txt
          2 kB
          Katherine Marsden
        3. utilXid.java
          2 kB
          Katherine Marsden
        4. XATemplate.java
          3 kB
          Katherine Marsden

        Issue Links

          Activity

            People

              kmarsden Katherine Marsden
              kmarsden Katherine Marsden
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: