public Xid getRemoteTransactionXid ( Long internalId ) { for ( RemoteTransaction rTx : getRemoteTransactions ( ) ) { RecoverableTransactionIdentifier gtx = ( RecoverableTransactionIdentifier ) rTx . getGlobalTransaction ( ) ; if ( gtx . getInternalId ( ) == internalId ) { if ( trace ) log . tracef ( "Found xid %s matching internal id %s" , gtx . getXid ( ) , internalId ) ; return gtx . getXid ( ) ; } } if ( trace ) log . tracef ( "Could not find remote transactions matching internal id %s" , internalId ) ; return null ; }
Iterates over the remote transactions and returns the XID of the one that has an internal id equal with the supplied internal Id .