Examples of TxContext


Examples of com.arjuna.mw.wst.TxContext

  try {
      ut.begin();

      tm.enlistForDurableTwoPhase(p, p.identifier());

      TxContext ctx = tm.suspend();

      System.out.println("Suspended: "+ctx);

      tm.resume(ctx);
View Full Code Here

Examples of com.arjuna.mw.wst.TxContext

      UserTransaction ut = UserTransaction.getUserTransaction();
      TransactionManager tm = TransactionManager.getTransactionManager();

      ut.begin();

      TxContext ctx = tm.suspend();

      System.out.println("Suspended: "+ctx);

      tm.resume(ctx);
View Full Code Here

Examples of com.arjuna.mw.wst.TxContext

        final DemoVolatileParticipant p2 = new DemoVolatileParticipant();
        final FailureParticipant p3 = new FailureParticipant(FailureParticipant.FAIL_IN_PREPARE, FailureParticipant.NONE);
        final DemoVolatileParticipant p4 = new DemoVolatileParticipant();

        ut.begin();
        final TxContext tx = tm.suspend();
        tm.resume(tx);
        tm.enlistForDurableTwoPhase(p1, p1.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);
View Full Code Here

Examples of com.arjuna.mw.wst.TxContext

      TransactionManager tm = TransactionManager.getTransactionManager();

      ut.begin();

    try {
      TxContext ctx = tm.suspend();

      System.out.println("Suspended: "+ctx);
    catch (Exception eouter) {
        try {
            ut.rollback();
View Full Code Here

Examples of com.arjuna.mw.wst.TxContext

        final DemoVolatileParticipant p2 = new DemoVolatileParticipant();
        final DemoDurableParticipant p3 = new DemoDurableParticipant();
        final DemoVolatileParticipant p4 = new DemoVolatileParticipant();

        ut.begin();
        final TxContext tx = tm.suspend();
        tm.resume(tx);
        tm.enlistForDurableTwoPhase(p1, p1.identifier());
        tm.enlistForVolatileTwoPhase(p2, p2.identifier());
        ust.begin();
        final TxContext stx = tm.suspend();
        tm.resume(stx);
        tm.enlistForDurableTwoPhase(p3, p3.identifier());
        tm.enlistForVolatileTwoPhase(p4, p4.identifier());

        tm.resume(tx);
View Full Code Here

Examples of com.arjuna.mw.wst.TxContext

     */
    public void beginSubordinate(int timeout) throws WrongStateException, SystemException
    {
        try
        {
            TxContext current = _ctxManager.currentTransaction();
            if ((current == null) || !(current instanceof TxContextImple))
                throw new WrongStateException();

            TxContextImple currentImple = (TxContextImple) current;
            Context ctx = startTransaction(timeout, currentImple);
View Full Code Here

Examples of com.arjuna.mw.wst.TxContext

 
  try
  {
      TransactionManager ut = TransactionManager.getTransactionManager();
 
      TxContext ctx = ut.suspend();

      System.out.println("Suspended: "+ctx);

      if (ctx == null)
    passed = true;
View Full Code Here

Examples of com.arjuna.mw.wst.TxContext

      UserTransaction ut = UserTransaction.getUserTransaction();
      TransactionManager tm = TransactionManager.getTransactionManager();
 
      ut.begin();
     
      TxContext ctx = tm.suspend();

      System.out.println("Suspended: "+ctx);
     
      passed = true;
  }
View Full Code Here

Examples of com.arjuna.mw.wst.TxContext

                {
                    final CoordinationContextType cc = CoordinationContextHelper.deserialise(soapHeaderElement) ;
                    final String coordinationType = cc.getCoordinationType().getValue() ;
                    if (AtomicTransactionConstants.WSAT_PROTOCOL.equals(coordinationType))
                    {
                        final TxContext txContext = new com.arjuna.mwlabs.wst.at.context.TxContextImple(cc) ;
                        TransactionManagerFactory.transactionManager().resume(txContext) ;
                    }
                    else if (BusinessActivityConstants.WSBA_PROTOCOL_ATOMIC_OUTCOME.equals(coordinationType))
                    {
                        final TxContext txContext = new com.arjuna.mwlabs.wst.ba.context.TxContextImple(cc);
                        BusinessActivityManagerFactory.businessActivityManager().resume(txContext) ;
                    }
                    else
                    {
                  wstxLogger.arjLoggerI18N.warn("com.arjuna.mw.wst.client.GlueICI_1",
View Full Code Here

Examples of com.arjuna.mw.wst.TxContext

        _threadTxData.set(tx);
    }
   
    public TxContext suspend () throws SystemException
    {
        final TxContext ctx = currentTransaction() ;
        if (ctx != null)
        {
            _threadTxData.set(null) ;
        }
  return ctx;
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.