Package com.arjuna.mwlabs.wst11.at.context

Examples of com.arjuna.mwlabs.wst11.at.context.TxContextImple


        /*
         * Now add the registrar for this specific coordinator to the
         * mapper.
         */

        _coordManager.enlistSynchronization(new CleanupSynchronization(_coordManager.identifier().toString(), _theRegistrar));

        /*
         * TODO Uughh! This does a suspend for us! Left over from original
         * WS-AS stuff.
         *
 
View Full Code Here


      /*
       * 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;
    }
View Full Code Here

    }
    else if (AtomicTransactionConstants.WSAT_SUB_PROTOCOL_COMPLETION.equals(protocolIdentifier))
    {
      try
      {
                final CompletionCoordinatorParticipant participant = new CompletionCoordinatorImple(_coordManager, hier, true, participantProtocolService) ;
                CompletionCoordinatorProcessor.getProcessor().activateParticipant(participant, instanceIdentifier.getInstanceIdentifier()) ;

        _coordManager.suspend();

        return getCompletionCoordinator(instanceIdentifier, isSecure) ;
View Full Code Here

  private final void enlistCompletionParticipants ()
      throws WrongStateException, UnknownTransactionException,
      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

      throws WrongStateException, UnknownTransactionException,
      SystemException
  {
    try
    {
      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);
    }
    catch (com.arjuna.wsc.AlreadyRegisteredException ex)
    {
View Full Code Here

            }
            final W3CEndpointReference registrationCoordinator = getRegistrationCoordinator(registrationCoordinatorURI, arjunaContext);
            coordinationContext.setRegistrationService(registrationCoordinator) ;

            String transactionIdentifier = arjunaContext.getTransactionIdentifier();
            BusinessActivityTerminator terminator = new BusinessActivityTerminatorImple();
            TerminationCoordinatorProcessor.getProcessor().activateParticipant(terminator, transactionIdentifier);

        _theRegistrar.associate();

        return coordinationContext;
View Full Code Here

        if (com.arjuna.webservices.wsarjtx.ArjunaTXConstants.WSARJTX_PROTOCOL_TERMINATION.equals(protocolIdentifier))
        {
                    /*
                     * update the server side terminator with the participant end point
                     */
                    BusinessActivityTerminatorImple terminator;
                    terminator = (BusinessActivityTerminatorImple) TerminationCoordinatorProcessor.getProcessor().getParticipant(instanceIdentifier);
                    terminator.setEndpoint(participantProtocolService);
                   
                    try
          {
                        return getParticipantManager(
                                ArjunaTX11Constants.TERMINATION_COORDINATOR_SERVICE_QNAME,
View Full Code Here

            if (coordinationContext == null)
            {
                throw new SystemException(
                    wstxLogger.log_mesg.getString("com.arjuna.mwlabs.wst11.ba.remote.UserBusinessActivityImple_2"));
            }
            return new ContextImple(coordinationContext) ;
        }
        catch (final InvalidCreateParametersException icpe)
        {
            throw icpe ;
        }
View Full Code Here

public class TxContextImple implements TxContext
{

    public TxContextImple(CoordinationContextType ctx)
    {
        _context = new ContextImple(ctx);
    }
View Full Code Here

    {
        try
        {
            _coordManager = CoordinatorManagerFactory.coordinatorManager();

            _theRegistrar = new RegistrarImple();
        }
        catch (Exception ex)
        {
            ex.printStackTrace();
        }
View Full Code Here

TOP

Related Classes of com.arjuna.mwlabs.wst11.at.context.TxContextImple

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.