Search in sources :

Example 6 with InvalidProtocolException

use of com.arjuna.wsc.InvalidProtocolException in project narayana by jbosstm.

the class ContextFactoryImple method createSubordinate.

public final Object createSubordinate() throws NoActivityException, InvalidProtocolException, SystemException {
    try {
        CoordinatorServiceImple coordManager = (CoordinatorServiceImple) _coordManager;
        BACoordinator subordinateTransaction = coordManager.createSubordinate();
        /*
             * Now add the registrar for this specific coordinator to the
             * mapper.
             */
        subordinateTransaction.enlistSynchronization(new CleanupSynchronization(subordinateTransaction.get_uid().stringForm(), _theRegistrar));
        _theRegistrar.associate(subordinateTransaction);
        return subordinateTransaction;
    } catch (Exception ex) {
        throw new SystemException(ex.toString());
    }
}
Also used : CleanupSynchronization(com.arjuna.mwlabs.wst11.ba.participants.CleanupSynchronization) SystemException(com.arjuna.mw.wsas.exceptions.SystemException) CoordinatorServiceImple(com.arjuna.mwlabs.wscf.model.sagas.arjunacore.CoordinatorServiceImple) BACoordinator(com.arjuna.mwlabs.wscf.model.sagas.arjunacore.BACoordinator) SubordinateBACoordinator(com.arjuna.mwlabs.wscf.model.sagas.arjunacore.subordinate.SubordinateBACoordinator) InvalidProtocolException(com.arjuna.wsc.InvalidProtocolException) InvalidCreateParametersException(com.arjuna.wsc.InvalidCreateParametersException) SystemException(com.arjuna.mw.wsas.exceptions.SystemException) NoActivityException(com.arjuna.mw.wsas.exceptions.NoActivityException)

Aggregations

InvalidProtocolException (com.arjuna.wsc.InvalidProtocolException)6 NoActivityException (com.arjuna.mw.wsas.exceptions.NoActivityException)4 SystemException (com.arjuna.mw.wsas.exceptions.SystemException)4 InvalidCreateParametersException (com.arjuna.wsc.InvalidCreateParametersException)4 W3CEndpointReference (javax.xml.ws.wsaddressing.W3CEndpointReference)4 CoordinationContextType (org.oasis_open.docs.ws_tx.wscoor._2006._06.CoordinationContextType)3 SubordinateBACoordinator (com.arjuna.mwlabs.wscf.model.sagas.arjunacore.subordinate.SubordinateBACoordinator)2 SubordinateATCoordinator (com.arjuna.mwlabs.wscf.model.twophase.arjunacore.subordinate.SubordinateATCoordinator)2 ServiceRegistry (com.arjuna.webservices11.ServiceRegistry)2 InstanceIdentifier (com.arjuna.webservices11.wsarj.InstanceIdentifier)2 CannotRegisterException (com.arjuna.wsc.CannotRegisterException)2 InvalidStateException (com.arjuna.wsc.InvalidStateException)2 CoordinationContext (org.oasis_open.docs.ws_tx.wscoor._2006._06.CoordinationContext)2 Expires (org.oasis_open.docs.ws_tx.wscoor._2006._06.Expires)2 BACoordinator (com.arjuna.mwlabs.wscf.model.sagas.arjunacore.BACoordinator)1 CoordinatorServiceImple (com.arjuna.mwlabs.wscf.model.sagas.arjunacore.CoordinatorServiceImple)1 ATCoordinator (com.arjuna.mwlabs.wscf.model.twophase.arjunacore.ATCoordinator)1 CoordinatorControl (com.arjuna.mwlabs.wscf.model.twophase.arjunacore.CoordinatorControl)1 CoordinatorServiceImple (com.arjuna.mwlabs.wscf.model.twophase.arjunacore.CoordinatorServiceImple)1 TxContextImple (com.arjuna.mwlabs.wst11.at.context.TxContextImple)1