public ContextFactoryImple() { try { _coordManager = CoordinatorManagerFactory.coordinatorManager(); _theRegistrar = new RegistrarImple(); // install the factory for the mapper to locate ContextFactoryMapper.getMapper().addContextFactory(ArjunaContextImple.coordinationType, this); } catch (Exception ex) { ex.printStackTrace(); } }
public void afterCompletion (int status) throws SystemException { try { _theRegistrar.disassociate(_cleanupId); } catch (Exception ex) { ex.printStackTrace(); throw new SystemException(ex.toString()); } }
return registerWithSubordinate((SubordinateATCoordinator)tx, participantProtocolService, protocolIdentifier, isSecure); return getCoordinator(participantId, isSecure) ; return getCoordinator(participantId, isSecure) ; return getCompletionCoordinator(instanceIdentifier, isSecure) ; return getCompletionCoordinatorRPC(instanceIdentifier, isSecure) ;
public final Object createSubordinate (String subordinateType) throws NoActivityException, InvalidProtocolException, SystemException { try { CoordinatorServiceImple coordManager = (CoordinatorServiceImple) _coordManager; CoordinatorControl theControl = coordManager.coordinatorControl(); ATCoordinator subordinateTransaction = theControl.createSubordinate(subordinateType); /* * 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()); } }
theTx.enlistParticipant(new DurableTwoPhaseCommitParticipant(participantStub, participantId)); return getCoordinator(participantId, isSecure) ; theTx.enlistSynchronization(new VolatileTwoPhaseCommitParticipant(participantStub)) ; return getCoordinator(participantId, isSecure) ;
return registerWithSubordinate((SubordinateATCoordinator)tx, participantProtocolService, protocolIdentifier, isSecure); return getCoordinator(participantId, isSecure) ; return getCoordinator(participantId, isSecure) ; return getCompletionCoordinator(instanceIdentifier, isSecure) ; return getCompletionCoordinatorRPC(instanceIdentifier, isSecure) ;
public final Object createSubordinate (String subordinateType) throws NoActivityException, InvalidProtocolException, SystemException { try { CoordinatorServiceImple coordManager = (CoordinatorServiceImple) _coordManager; CoordinatorControl theControl = coordManager.coordinatorControl(); ATCoordinator subordinateTransaction = theControl.createSubordinate(subordinateType); /* * 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()); } }
theTx.enlistParticipant(new DurableTwoPhaseCommitParticipant(participantStub, participantId)); return getCoordinator(participantId, isSecure) ; theTx.enlistSynchronization(new VolatileTwoPhaseCommitParticipant(participantStub)) ; return getCoordinator(participantId, isSecure) ;
return registerWithSubordinate((SubordinateATCoordinator)tx, participantProtocolService, protocolIdentifier, isSecure); return getCoordinator(participantId, isSecure) ; return getCoordinator(participantId, isSecure) ; return getCompletionCoordinator(instanceIdentifier, isSecure) ; return getCompletionCoordinatorRPC(instanceIdentifier, isSecure) ;
public final Object createSubordinate (String subordinateType) throws NoActivityException, InvalidProtocolException, SystemException { try { CoordinatorServiceImple coordManager = (CoordinatorServiceImple) _coordManager; CoordinatorControl theControl = coordManager.coordinatorControl(); ATCoordinator subordinateTransaction = theControl.createSubordinate(subordinateType); /* * 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()); } }
public void afterCompletion (int status) throws SystemException { try { _theRegistrar.disassociate(_cleanupId); } catch (Exception ex) { ex.printStackTrace(); throw new SystemException(ex.toString()); } }
public ContextFactoryImple() { try { _coordManager = CoordinatorManagerFactory.coordinatorManager(); _theRegistrar = new RegistrarImple(); // install the factory for the mapper to locate ContextFactoryMapper.getMapper().addContextFactory(ArjunaContextImple.coordinationType, this); } catch (Exception ex) { ex.printStackTrace(); } }
theTx.enlistParticipant(new DurableTwoPhaseCommitParticipant(participantStub, participantId)); return getCoordinator(participantId, isSecure) ; theTx.enlistSynchronization(new VolatileTwoPhaseCommitParticipant(participantStub)) ; return getCoordinator(participantId, isSecure) ;
_theRegistrar.associate(subTx); } catch (Exception e) {
public void afterCompletion (int status) throws SystemException { try { _theRegistrar.disassociate(_cleanupId); } catch (Exception ex) { ex.printStackTrace(); throw new SystemException(ex.toString()); } }
public ContextFactoryImple() { try { _coordManager = CoordinatorManagerFactory.coordinatorManager(); _theRegistrar = new RegistrarImple(); // install the factory for the mapper to locate ContextFactoryMapper.getMapper().addContextFactory(ArjunaContextImple.coordinationType, this); } catch (Exception ex) { ex.printStackTrace(); } }
_theRegistrar.associate(subTx); } catch (Exception e) {
_theRegistrar.associate(subTx); } catch (Exception e) {