[jbossts-issues] [JBoss JIRA] Created: (JBTM-330) PropagationContextManager.getTransactionPropagationContext() to log returned tpc

Galder Zamarreno (JIRA) jira-events at lists.jboss.org
Thu Feb 28 09:08:42 EST 2008


PropagationContextManager.getTransactionPropagationContext() to log returned tpc
--------------------------------------------------------------------------------

                 Key: JBTM-330
                 URL: http://jira.jboss.com/jira/browse/JBTM-330
             Project: JBoss Transaction Manager
          Issue Type: Task
      Security Level: Public (Everyone can see)
    Affects Versions: 4.3.0.BETA2, 4.2.3.SP6
            Reporter: Galder Zamarreno


>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?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jbossts-issues mailing list