All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.arjuna.wscf.tests.WSCFTestUtils Maven / Gradle / Ivy

Go to download

JBossTS - JBoss Transaction Service. JTA, JTS and XTS (WS-AT, WS-BA)

The newest version!
package com.arjuna.wscf.tests;

/**
 * Created by IntelliJ IDEA.
 * User: adinn
 * Date: Mar 17, 2008
 * Time: 9:26:00 AM
 * To change this template use File | Settings | File Templates.
 */
public class WSCFTestUtils {
    static public void cleanup(com.arjuna.mw.wscf.model.twophase.api.UserCoordinator ua)
    {
        try {
            while (ua.currentActivity() != null) {
                ua.cancel();
            }
        } catch (Exception e) {
            // do nothing -- caller will be dealing with exceptions
        }
    }

    static public void cleanup(com.arjuna.mw.wscf.model.twophase.api.CoordinatorManager cm)
    {
        try {
            while (cm.currentActivity() != null) {
                cm.cancel();
            }
        } catch (Exception e) {
            // do nothing -- caller will be dealing with exceptions
        }
    }


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy