public RegistrarImple() throws ProtocolNotRegisteredException, SystemException { _coordManager = CoordinatorManagerFactory.coordinatorManager(); // register with mapper using tx id as protocol identifier. final com.arjuna.wsc11.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); mapper.addRegistrar(AtomicTransactionConstants.WSAT_SUB_PROTOCOL_COMPLETION_RPC, this); }
/** * Add a context factory for the specified coordination type. * @param coordinationTypeURI The coordination type. * @param contextFactory The context factory. */ public void addContextFactory(final String coordinationTypeURI, final ContextFactory contextFactory) { synchronized(contextFactoryMap) { contextFactoryMap.put(coordinationTypeURI, contextFactory) ; } contextFactory.install(coordinationTypeURI) ; }
/** * Add a registrar for the specified protocol identifier. * @param protocolIdentifier The protocol identifier. * @param registrar The registrar. */ public void addRegistrar(final String protocolIdentifier, final Registrar registrar) { synchronized(registrarMap) { registrarMap.put(protocolIdentifier, registrar) ; } registrar.install(protocolIdentifier) ; }
/** * Remove the context factory for the specified coordination type. * @param coordinationTypeURI The coordination type. */ public void removeContextFactory(final String coordinationTypeURI) { final Object localContextFactory ; synchronized(contextFactoryMap) { localContextFactory = contextFactoryMap.remove(coordinationTypeURI) ; } if (localContextFactory != null) { ((ContextFactory)localContextFactory).uninstall(coordinationTypeURI) ; } } }
/** * Remove the registrar for the specified protocol identifier. * @param protocolIdentifier The protocol identifier. */ public void removeRegistrar(final String protocolIdentifier) { final Object localRegistrar ; synchronized(registrarMap) { localRegistrar = registrarMap.remove(protocolIdentifier) ; } if (localRegistrar != null) { ((Registrar)localRegistrar).uninstall(protocolIdentifier) ; } } }
/** * Adds a new messageID that is going to be sent by the client waiting for response. * @param messageId The messageID hat is going to be sent */ public void addClientMessage(String messageId) { WSCLogger.logger.tracev("AsynchronousRegistrationMapper addClientMessage {0}", messageId); this.responses.put(messageId, new FaultOrResponse()); }
public RegistrarImple() throws ProtocolNotRegisteredException, SystemException { _coordManager = CoordinatorManagerFactory.coordinatorManager(); // register with mapper using tx id as protocol identifier. final com.arjuna.wsc11.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); mapper.addRegistrar(AtomicTransactionConstants.WSAT_SUB_PROTOCOL_COMPLETION_RPC, this); }
/** * Add a context factory for the specified coordination type. * @param coordinationTypeURI The coordination type. * @param contextFactory The context factory. */ public void addContextFactory(final String coordinationTypeURI, final ContextFactory contextFactory) { synchronized(contextFactoryMap) { contextFactoryMap.put(coordinationTypeURI, contextFactory) ; } contextFactory.install(coordinationTypeURI) ; }
/** * Add a registrar for the specified protocol identifier. * @param protocolIdentifier The protocol identifier. * @param registrar The registrar. */ public void addRegistrar(final String protocolIdentifier, final Registrar registrar) { synchronized(registrarMap) { registrarMap.put(protocolIdentifier, registrar) ; } registrar.install(protocolIdentifier) ; }
/** * Remove the context factory for the specified coordination type. * @param coordinationTypeURI The coordination type. */ public void removeContextFactory(final String coordinationTypeURI) { final Object localContextFactory ; synchronized(contextFactoryMap) { localContextFactory = contextFactoryMap.remove(coordinationTypeURI) ; } if (localContextFactory != null) { ((ContextFactory)localContextFactory).uninstall(coordinationTypeURI) ; } } }
/** * Remove the registrar for the specified protocol identifier. * @param protocolIdentifier The protocol identifier. */ public void removeRegistrar(final String protocolIdentifier) { final Object localRegistrar ; synchronized(registrarMap) { localRegistrar = registrarMap.remove(protocolIdentifier) ; } if (localRegistrar != null) { ((Registrar)localRegistrar).uninstall(protocolIdentifier) ; } } }
public RegistrarImple() throws ProtocolNotRegisteredException, SystemException { _coordManager = CoordinatorManagerFactory.coordinatorManager(); // register with mapper using tx id as protocol identifier. final com.arjuna.wsc11.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); mapper.addRegistrar(AtomicTransactionConstants.WSAT_SUB_PROTOCOL_COMPLETION_RPC, this); }
/** * Add a context factory for the specified coordination type. * @param coordinationTypeURI The coordination type. * @param contextFactory The context factory. */ public void addContextFactory(final String coordinationTypeURI, final ContextFactory contextFactory) { synchronized(contextFactoryMap) { contextFactoryMap.put(coordinationTypeURI, contextFactory) ; } contextFactory.install(coordinationTypeURI) ; }
/** * Add a registrar for the specified protocol identifier. * @param protocolIdentifier The protocol identifier. * @param registrar The registrar. */ public void addRegistrar(final String protocolIdentifier, final Registrar registrar) { synchronized(registrarMap) { registrarMap.put(protocolIdentifier, registrar) ; } registrar.install(protocolIdentifier) ; }
/** * Remove the context factory for the specified coordination type. * @param coordinationTypeURI The coordination type. */ public void removeContextFactory(final String coordinationTypeURI) { final Object localContextFactory ; synchronized(contextFactoryMap) { localContextFactory = contextFactoryMap.remove(coordinationTypeURI) ; } if (localContextFactory != null) { ((ContextFactory)localContextFactory).uninstall(coordinationTypeURI) ; } } }
public RegistrarImple() throws ProtocolNotRegisteredException, 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(com.arjuna.webservices.wsarjtx.ArjunaTXConstants.WSARJTX_PROTOCOL_TERMINATION, this); mapper.addRegistrar(com.arjuna.webservices.wsarjtx.ArjunaTXConstants.WSARJTX_PROTOCOL_TERMINATION_RPC, this); }
/** * Add a context factory for the specified coordination type. * @param coordinationTypeURI The coordination type. * @param contextFactory The context factory. */ public void addContextFactory(final String coordinationTypeURI, final ContextFactory contextFactory) { synchronized(contextFactoryMap) { contextFactoryMap.put(coordinationTypeURI, contextFactory) ; } contextFactory.install(coordinationTypeURI) ; }
/** * Add a registrar for the specified protocol identifier. * @param protocolIdentifier The protocol identifier. * @param registrar The registrar. */ public void addRegistrar(final String protocolIdentifier, final Registrar registrar) { synchronized(registrarMap) { registrarMap.put(protocolIdentifier, registrar) ; } registrar.install(protocolIdentifier) ; }
public RegistrarImple() throws ProtocolNotRegisteredException, 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(com.arjuna.webservices.wsarjtx.ArjunaTXConstants.WSARJTX_PROTOCOL_TERMINATION, this); mapper.addRegistrar(com.arjuna.webservices.wsarjtx.ArjunaTXConstants.WSARJTX_PROTOCOL_TERMINATION_RPC, this); }
public RegistrarImple() throws ProtocolNotRegisteredException, 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(com.arjuna.webservices.wsarjtx.ArjunaTXConstants.WSARJTX_PROTOCOL_TERMINATION, this); mapper.addRegistrar(com.arjuna.webservices.wsarjtx.ArjunaTXConstants.WSARJTX_PROTOCOL_TERMINATION_RPC, this); }