// associated with the tx at beforeCompletion, and the
// TM is listening as a SubTxAware!
// NOTE: doing this at the very beginning of commit
// also makes sure that the tx can still get new Participants
// from beforeCompletion work being done! This is required.
Synchronization sync = null;
Enumeration enumm = synchronizations_.elements ();
while ( enumm.hasMoreElements () ) {
sync = (Synchronization) enumm.nextElement ();
try {
sync.beforeCompletion ();
} catch ( RuntimeException error ) {
//see case 24246: rollback only
setRollbackOnly();
Configuration.logWarning ( "Unexpected error in beforeCompletion: " , error );
}