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 );
}