Examples of identifier()


Examples of com.arjuna.mw.wscf.model.twophase.api.CoordinatorManager.identifier()

  {
      cm.begin();

      cm.enlistSynchronization(new TwoPhaseSynchronization());
     
      System.out.println("Started: "+cm.identifier()+"\n");

      cm.confirm();
  }
  catch (Exception ex)
  {
View Full Code Here

Examples of com.arjuna.mw.wscf.model.twophase.api.UserCoordinator.identifier()

  try
  {
      ua.begin();

      System.out.println("Started: "+ua.identifier()+"\n");

      ua.confirm();
  }
  catch (Exception ex)
  {
View Full Code Here

Examples of com.arjuna.mwlabs.wst.at.context.TxContextImple.identifier()

    {
      ctx = (TxContextImple) _ctxManager.suspend();
            if (ctx == null) {
                throw new WrongStateException();
            }
            id = ctx.identifier();

      /*
       * By default the completionParticipantURL won't be set for an interposed (imported)
       * bridged transaction. This is fine, because you shouldn't be able to commit that
       * transaction from a node in the tree, only from the root. So, we can prevent commit
View Full Code Here

Examples of com.arjuna.mwlabs.wst.ba.context.TxContextImple.identifier()

          ctx = (TxContextImple) _ctxManager.suspend();
            if (ctx == null) {
                throw new WrongStateException();
            }
           
            final String id = ctx.identifier() ;
            final EndpointReferenceType terminatorCoordinator = getTerminationCoordinator(ctx) ;
           
          BusinessActivityTerminatorStub terminatorStub = new BusinessActivityTerminatorStub(id, terminatorCoordinator);
         
          terminatorStub.close();
View Full Code Here

Examples of com.arjuna.mwlabs.wst11.at.context.TxContextImple.identifier()

      SystemException
  {
        TransactionManagerImple tm = (TransactionManagerImple) TransactionManager.getTransactionManager();

        final TxContextImple txContext = (TxContextImple) tm.currentTransaction();
        final String id = txContext.identifier();
        final W3CEndpointReference completionCoordinator = tm.enlistForCompletion(getCompletionParticipant(id, txContext.isSecure()));

        _completionCoordinators.put(id, completionCoordinator);
  }
View Full Code Here

Examples of com.arjuna.mwlabs.wst11.ba.context.TxContextImple.identifier()

          ctx = (TxContextImple) _ctxManager.suspend();
            if (ctx == null) {
                throw new WrongStateException();
            }

            final String id = ctx.identifier() ;
            final W3CEndpointReference terminatorCoordinator = getTerminationCoordinator(ctx) ;

          BusinessActivityTerminatorStub terminatorStub = new BusinessActivityTerminatorStub(id, terminatorCoordinator);

          terminatorStub.close();
View Full Code Here

Examples of com.arjuna.wst.tests.common.DemoBusinessParticipant.identifier()

      com.arjuna.wst.BAParticipantManager bpm = null;
        DemoBusinessParticipant p = new DemoBusinessParticipant(DemoBusinessParticipant.CLOSE, "1235");
      try {
      uba.begin();
     
      bpm = bam.enlistForBusinessAgreementWithParticipantCompletion(p, p.identifier());
        bpm.completed();
        } catch (Exception eouter) {
            try {
                uba.cancel();
            } catch(Exception einner) {
View Full Code Here

Examples of com.arjuna.wst.tests.common.DemoDurableParticipant.identifier()

      TransactionManager tm = TransactionManager.getTransactionManager();
      DemoDurableParticipant p = new DemoDurableParticipant();
     
      ut.begin();
      try {
      tm.enlistForDurableTwoPhase(p, p.identifier());
        catch (Exception eouter) {
            try {
                ut.rollback();
            } catch(Exception einner) {
            }
View Full Code Here

Examples of com.arjuna.wst.tests.common.DemoVolatileParticipant.identifier()

        tm.enlistForVolatileTwoPhase(p2, p2.identifier());
        ust.begin();
        final TxContext stx = tm.suspend();
        tm.resume(stx);
        tm.enlistForDurableTwoPhase(p3, "failure in prepare");
        tm.enlistForVolatileTwoPhase(p4, p4.identifier());

        tm.resume(tx);
        try {
        ut.commit();
            fail("expecting TransactionRolledBackException");
View Full Code Here

Examples of com.jcabi.github.Gist.identifier()

        );
        MatcherAssert.assertThat(
            gists.iterate(),
            Matchers.hasItem(gist)
        );
        gists.remove(gist.identifier());
        MatcherAssert.assertThat(
            gists.iterate(),
            Matchers.not(Matchers.hasItem(gist))
        );
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.