Package context

Examples of context.Context


      try
      {
          if (_ctxManager.currentTransaction() != null)
            throw new WrongStateException();

          Context ctx = startTransaction(timeout);

          _ctxManager.resume(new TxContextImple(ctx));
      }
      catch (InvalidCreateParametersException ex)
      {
View Full Code Here


    try
    {
      if (_ctxManager.currentTransaction() != null)
        throw new WrongStateException();

      Context ctx = startTransaction(timeout, null);

      _ctxManager.resume(new TxContextImple(ctx));

      enlistCompletionParticipants();
    }
View Full Code Here

            TxContext current = _ctxManager.currentTransaction();
            if ((current == null) || !(current instanceof TxContextImple))
                throw new WrongStateException();

            TxContextImple currentImple = (TxContextImple) current;
            Context ctx = startTransaction(timeout, currentImple);

            _ctxManager.resume(new TxContextImple(ctx));
            // n.b. we don't enlist the subordinate transaction for completion
            // that ensures that any attempt to commit or rollback will fail
        }
View Full Code Here

             * associated with the thread.
             */
            final TransactionManager transactionManager = TransactionManagerFactory.transactionManager() ;
            final com.arjuna.mw.wst11.BusinessActivityManager businessActivityManager = BusinessActivityManagerFactory.businessActivityManager() ;

            final Context atContext ;
            if (transactionManager != null)
            {
                final TxContextImple txContext =
                    (TxContextImple)transactionManager.currentTransaction() ;
                atContext = (txContext == null ? null : txContext.context()) ;
            }
            else
            {
                atContext = null ;
            }

            final Context baContext ;
            if (businessActivityManager != null)
            {
                final com.arjuna.mwlabs.wst11.ba.context.TxContextImple txContext =
                    (com.arjuna.mwlabs.wst11.ba.context.TxContextImple)businessActivityManager.currentTransaction() ;
                baContext = (txContext == null ? null : txContext.context()) ;
            }
            else
            {
                baContext = null ;
            }

            final CoordinationContextType coordinationContext ;
            if (atContext != null)
            {
                coordinationContext = atContext.getCoordinationContext() ;
            }
            else if (baContext != null)
            {
                coordinationContext = baContext.getCoordinationContext() ;
            }
            else
            {
                coordinationContext = null ;
            }
View Full Code Here

    try
    {
      if (_ctxManager.currentTransaction() != null)
        throw new WrongStateException();

      Context ctx = startTransaction(timeout, null);

      _ctxManager.resume(new TxContextImple(ctx));

      enlistCompletionParticipants();
    }
View Full Code Here

            TxContext current = _ctxManager.currentTransaction();
            if ((current == null) || !(current instanceof TxContextImple))
                throw new WrongStateException();

            TxContextImple currentImple = (TxContextImple) current;
            Context ctx = startTransaction(timeout, currentImple);

            _ctxManager.resume(new TxContextImple(ctx));
            // n.b. we don't enlist the subordinate transaction for completion
            // that ensures that any attempt to commit or rollback will fail
        }
View Full Code Here

        if((!ALIGN_AND_DISTRIBUTION_SERVICE_NAME.equals(name))||(!FComponent.class.equals(type)))
            throw new IllegalParameterException("IllegalParameterException");

        AlignAndDistService alignAndDistService = new AlignAndDistService();

        Context cont = alignAndDistService.getContext();
        ActionMap actionMap = alignAndDistService.getActionMap();

        Hashtable interfaces = new Hashtable();
        Hashtable classes = new Hashtable();
View Full Code Here

TOP

Related Classes of context.Context

Copyright © 2018 www.massapicom. 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.