@ Override public String [ ] listPreparedTransactions ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getPreparedTransactions" ) ; String [ ] col = null ; if ( _manager != null ) { // Obtain array of in-doubt xids from the XidManager Xid [ ] xids = null ; xids = _manager . listRemoteInDoubts ( ) ; if ( xids != null ) { // Get the string representation of each xid // and add to the collection col = new String [ xids . length ] ; for ( int i = 0 ; i < xids . length ; i ++ ) { col [ i ] = ( ( PersistentTranId ) xids [ i ] ) . toString ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) SibTr . debug ( this , tc , "xid " + col [ i ] + " in-doubt" ) ; } } } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "getPreparedTransactions" ) ; return col ; }
Obtain a list of XIDs which are in - doubt . Part of MBean interface for resolving in - doubt transactions .