]
Mark Little reassigned JBTM-330:
--------------------------------
Assignee: Mark Little
PropagationContextManager.getTransactionPropagationContext() to log
returned tpc
--------------------------------------------------------------------------------
Key: JBTM-330
URL:
https://jira.jboss.org/jira/browse/JBTM-330
Project: JBoss Transaction Manager
Issue Type: Task
Security Level: Public(Everyone can see)
Components: JTA Implementation, JTS Implementation
Affects Versions: 4.2.3.SP6, 4.3.0.BETA2
Reporter: Galder Zamarreno
Assignee: Mark Little
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: