Uploaded image for project: 'JBoss Transaction Manager'
  1. JBoss Transaction Manager
  2. JBTM-330

PropagationContextManager.getTransactionPropagationContext() to log returned tpc

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4.2.3.SP6, 4.3.0.BETA2
    • Fix Version/s: 4.4.CR2
    • Component/s: JTA, JTS
    • Labels:
      None
    • Estimated Difficulty:
      Low

      Description

      From a support point of view, it'd be really helpful if the JTA
      and JTS PropagationContextManager logged which tcp is
      returned when getTransactionPropagationContext() is called.

      I have done a local patch for the JTA version as a result of trying
      to figure out how it worked internally:

      public Object getTransactionPropagationContext()
      {
      if (log.isDebugEnabled())

      { log.debug("PropagationContextManager.getTransactionPropagationContext - called"); }

      String txid = ((BasicAction.Current() == null) ? null : BasicAction.Current().get_uid().stringForm());

      if (log.isDebugEnabled())

      { log.debug("PropagationContextManager.getTransactionPropagationContext - returned tpc = " + txid); }

      return txid;
      }

      If everyone's happy with this, I can commit it myself. Thoughts?

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                marklittle Mark Little
                Reporter:
                galder.zamarreno Galder ZamarreƱo
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: