/** * @param protocolName The name of the protocol. * * @exception com.arjuna.mw.wscf.exceptions.ProtocolNotRegisteredException * Thrown if the requested coordination protocol has not been * registered. * @exception IllegalArgumentException * Thrown if the parameter is invalid. * * @return The class that implements the specified coordination protocol. * */ public Object getProtocolImplementation (String protocolName) throws ProtocolNotRegisteredException, IllegalArgumentException { synchronized (this) { if (protocolName == null) { throw new IllegalArgumentException(); } Object object = _protocols.get(protocolName); if (object == null) { throw new ProtocolNotRegisteredException(wscfLogger.i18NLogger.get_mw_wscf11_protocols_ProtocolManager_1() + protocolName); } return object; } }
/** * create a business activity terminator for use on the server side with an empty participant endpoint * which gets set at registration time * @throws SystemException */ public BusinessActivityTerminatorImple() throws SystemException { try { _coordManager = CoordinatorManagerFactory.coordinatorManager(); _hier = _coordManager.currentActivity(); } catch (ProtocolNotRegisteredException pnre) { throw new SystemException(pnre.toString()); } catch (com.arjuna.mw.wsas.exceptions.SystemException ex) { throw new SystemException(ex.toString()); } participantEndpoint = null; }
/** * create a business activity terminator for use on the server side with an empty participant endpoint * which gets set at registration time * @throws SystemException */ public BusinessActivityTerminatorImple() throws SystemException { try { _coordManager = CoordinatorManagerFactory.coordinatorManager(); _hier = _coordManager.currentActivity(); } catch (ProtocolNotRegisteredException pnre) { throw new SystemException(pnre.toString()); } catch (com.arjuna.mw.wsas.exceptions.SystemException ex) { throw new SystemException(ex.toString()); } participantEndpoint = null; }
/** * create a business activity terminator for use on the server side with an empty participant endpoint * which gets set at registration time * @throws SystemException */ public BusinessActivityTerminatorImple() throws SystemException { try { _coordManager = CoordinatorManagerFactory.coordinatorManager(); _hier = _coordManager.currentActivity(); } catch (ProtocolNotRegisteredException pnre) { throw new SystemException(pnre.toString()); } catch (com.arjuna.mw.wsas.exceptions.SystemException ex) { throw new SystemException(ex.toString()); } participantEndpoint = null; }
/** * @param protocolName The name of the protocol. * * @exception com.arjuna.mw.wscf.exceptions.ProtocolNotRegisteredException * Thrown if the requested coordination protocol has not been * registered. * @exception IllegalArgumentException * Thrown if the parameter is invalid. * * @return The class that implements the specified coordination protocol. * */ public Object getProtocolImplementation (String protocolName) throws ProtocolNotRegisteredException, IllegalArgumentException { synchronized (this) { if (protocolName == null) { throw new IllegalArgumentException(); } Object object = _protocols.get(protocolName); if (object == null) { throw new ProtocolNotRegisteredException(wscfLogger.i18NLogger.get_mw_wscf11_protocols_ProtocolManager_1() + protocolName); } return object; } }