[jbossts-issues] [JBoss JIRA] (JBTM-2116) SPI: Unique identifier for a transaction

Tom Jenkinson (JIRA) issues at jboss.org
Wed Apr 2 06:31:13 EDT 2014

    [ https://issues.jboss.org/browse/JBTM-2116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12958396#comment-12958396 ] 

Tom Jenkinson commented on JBTM-2116:

>From Jesper on the forum:
JBTM-2216 is needed for cases where the Transaction instance is currently used as a key in a Map<Transaction, ?>, and the map is cleaned up in a Synchronization:afterCompletion() implementation. The map is static in order to coordinate across the JVM.


Example usage (constructor)

this.tx = tx;
this.key = TxSPI.getIdentifier(tx);

txMap.put(key, this);


Example usage (afterCompletion)

> SPI: Unique identifier for a transaction
> ----------------------------------------
>                 Key: JBTM-2116
>                 URL: https://issues.jboss.org/browse/JBTM-2116
>             Project: JBoss Transaction Manager
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>          Components: SPI
>            Reporter: Jesper Pedersen
>            Assignee: Michael Musgrove
> The Narayana SPI should provide a method that returns a unique identifier for a transaction that is stable for its entire lifecycle.
> {noformat}
> public Object getIdentifier(Transaction tx)
> {noformat}

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

More information about the jbossts-issues mailing list