public void destroyResources ( ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "destroyResources" ) ; // Browse through the participants, processing them as appropriate final ArrayList < JTAResource > resources = getResourceObjects ( ) ; for ( JTAResource resource : resources ) { destroyResource ( resource ) ; } if ( _sameRMResource != null ) { destroyResource ( _sameRMResource ) ; } if ( tc . isEntryEnabled ( ) ) Tr . exit ( tc , "destroyResources" ) ; }
Cleanup resources that have not yet been completed . A utility function called when transaction completion has been abandonned either when retries have been exhausted or the operator has cancelled the transaction .