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

PropagationContextManager.getTransactionPropagationContext() to log returned tpc

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • 4.4.CR2
    • 4.2.3.SP6, 4.3.0.BETA2
    • JTA, JTS
    • None
    • Low

      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?

              nmcl2001 Mark Little
              rh-ee-galder Galder ZamarreƱo
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: