Package com.arjuna.wsc

Examples of com.arjuna.wsc.RegistrarMapper


        final TestContextFactory testContextFactory = new TestContextFactory(TestUtil.COORDINATION_TYPE) ;

        contextFactoryMapper.addContextFactory(TestUtil.COORDINATION_TYPE, testContextFactory) ;
        contextFactoryMapper.addContextFactory(TestUtil.INVALID_CREATE_PARAMETERS_COORDINATION_TYPE, testContextFactory) ;
       
        final RegistrarMapper registrarMapper = RegistrarMapper.getFactory() ;
        final TestRegistrar testRegistrar = new TestRegistrar() ;
       
        registrarMapper.addRegistrar(TestUtil.PROTOCOL_IDENTIFIER, testRegistrar) ;
        registrarMapper.addRegistrar(TestUtil.ALREADY_REGISTERED_PROTOCOL_IDENTIFIER, testRegistrar) ;
        registrarMapper.addRegistrar(TestUtil.INVALID_PROTOCOL_PROTOCOL_IDENTIFIER, testRegistrar) ;
        registrarMapper.addRegistrar(TestUtil.INVALID_STATE_PROTOCOL_IDENTIFIER, testRegistrar) ;
        registrarMapper.addRegistrar(TestUtil.NO_ACTIVITY_PROTOCOL_IDENTIFIER, testRegistrar) ;
    }
View Full Code Here


    {
        final ContextFactoryMapper contextFactoryMapper = ContextFactoryMapper.getFactory() ;
        contextFactoryMapper.removeContextFactory(TestUtil.COORDINATION_TYPE);
        contextFactoryMapper.removeContextFactory(TestUtil.INVALID_CREATE_PARAMETERS_COORDINATION_TYPE);
       
        final RegistrarMapper registrarMapper = RegistrarMapper.getFactory() ;
        registrarMapper.removeRegistrar(TestUtil.PROTOCOL_IDENTIFIER);
        registrarMapper.removeRegistrar(TestUtil.ALREADY_REGISTERED_PROTOCOL_IDENTIFIER);
        registrarMapper.removeRegistrar(TestUtil.INVALID_PROTOCOL_PROTOCOL_IDENTIFIER);
        registrarMapper.removeRegistrar(TestUtil.INVALID_STATE_PROTOCOL_IDENTIFIER);
        registrarMapper.removeRegistrar(TestUtil.NO_ACTIVITY_PROTOCOL_IDENTIFIER);
    }
View Full Code Here

    {
      try
      {
          _coordManager = TransactionManagerFactory.transactionManager();
           
            final RegistrarMapper mapper = RegistrarMapper.getFactory() ;

            mapper.addRegistrar(_2PCProtocolId, this);
            mapper.addRegistrar(_synchProtocolId, this);
      }
      catch (Exception ex)
      {
          ex.printStackTrace();
      }
View Full Code Here

  {
    try
    {
      _coordManager = CoordinatorManagerFactory.coordinatorManager();

      final RegistrarMapper mapper = RegistrarMapper.getFactory() ;

      mapper.addRegistrar(_2PCProtocolId, this);
      mapper.addRegistrar(_synchProtocolId, this);
    }
    catch (Exception ex)
    {
      ex.printStackTrace();
    }
View Full Code Here

      SystemException
  {
    _coordManager = CoordinatorManagerFactory.coordinatorManager();

    // register with mapper using tx id as protocol identifier.
    final RegistrarMapper mapper = RegistrarMapper.getFactory();

    mapper.addRegistrar(
      BusinessActivityConstants.WSBA_SUB_PROTOCOL_PARTICIPANT_COMPLETION, this);
    mapper.addRegistrar(
      BusinessActivityConstants.WSBA_SUB_PROTOCOL_COORDINATOR_COMPLETION, this);
    mapper.addRegistrar(ArjunaTXConstants.WSARJTX_PROTOCOL_TERMINATION, this);
  }
View Full Code Here

        throws ProtocolNotRegisteredException, SystemException
  {
    _coordManager = CoordinatorManagerFactory.coordinatorManager();

    // register with mapper using tx id as protocol identifier.
        final RegistrarMapper mapper = RegistrarMapper.getFactory() ;

    mapper.addRegistrar(AtomicTransactionConstants.WSAT_SUB_PROTOCOL_DURABLE_2PC, this);
    mapper.addRegistrar(AtomicTransactionConstants.WSAT_SUB_PROTOCOL_VOLATILE_2PC, this);
    mapper.addRegistrar(AtomicTransactionConstants.WSAT_SUB_PROTOCOL_COMPLETION, this);
  }
View Full Code Here

     * @param arjunaContext The arjuna context.
     */
    public void register(final RegisterType register, final AddressingContext addressingContext,
        final ArjunaContext arjunaContext)
    {
        final RegistrarMapper registrarMapper = RegistrarMapper.getFactory() ;
        try
        {
            final String protocolIdentifier = register.getProtocolIdentifier().getValue() ;
            final Registrar registrar = registrarMapper.getRegistrar(protocolIdentifier) ;
           
            if (registrar != null)
            {
                final EndpointReferenceType coordinationProtocolService ;
                final AddressingContext responseAddressingContext ;
View Full Code Here

    {
      try
      {
          _coordManager = TransactionManagerFactory.transactionManager();
           
            final RegistrarMapper mapper = RegistrarMapper.getFactory() ;

            mapper.addRegistrar(_2PCProtocolId, this);
            mapper.addRegistrar(_synchProtocolId, this);
      }
      catch (Exception ex)
      {
          ex.printStackTrace();
      }
View Full Code Here

  {
    try
    {
      _coordManager = CoordinatorManagerFactory.coordinatorManager();

      final RegistrarMapper mapper = RegistrarMapper.getFactory() ;

      mapper.addRegistrar(_2PCProtocolId, this);
      mapper.addRegistrar(_synchProtocolId, this);
    }
    catch (Exception ex)
    {
      ex.printStackTrace();
    }
View Full Code Here

     * @param arjunaContext The arjuna context.
     */
    public void register(final RegisterType register, final AddressingContext addressingContext,
        final ArjunaContext arjunaContext)
    {
        final RegistrarMapper registrarMapper = RegistrarMapper.getFactory() ;
        try
        {
            final String protocolIdentifier = register.getProtocolIdentifier().getValue() ;
            final Registrar registrar = registrarMapper.getRegistrar(protocolIdentifier) ;
           
            if (registrar != null)
            {
                final EndpointReferenceType coordinationProtocolService ;
                final AddressingContext responseAddressingContext ;
View Full Code Here

TOP

Related Classes of com.arjuna.wsc.RegistrarMapper

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.