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