public String getCoordinatorURL11() { if (coordinatorURL11 == null) { // compute the required value return getCoordinatorScheme11() + "://" + getCoordinatorAddress11() + ":" + getCoordinatorPort11() + "/" + getCoordinatorPath11(); } return coordinatorURL11; }
/** * Returns the systems default properties, as read from the configuration file. * @return the configuration Properties */ public static Properties getDefaultProperties() { if(defaultProperties == null) { initDefaultProperties("org.jboss.jbossts.xts.propertiesFile"); } return defaultProperties; }
public String getCoordinatorURL10() { if (coordinatorURL10 == null) { // compute the required value return getCoordinatorScheme10() + "://" + getCoordinatorAddress10() + ":" + getCoordinatorPort10() + "/" + getCoordinatorPath10(); } return coordinatorURL10; }
public static void startup() { final ServiceRegistry serviceRegistry = ServiceRegistry.getRegistry() ; WSCEnvironmentBean wscEnvironmentBean = XTSPropertyManager.getWSCEnvironmentBean(); String bindAddress = wscEnvironmentBean.getBindAddress11(); int bindPort = wscEnvironmentBean.getBindPort11(); int secureBindPort = wscEnvironmentBean.getBindPortSecure11(); WSTEnvironmentBean wstEnvironmentBean = XTSPropertyManager.getWSTEnvironmentBean(); String participantServiceURLPath = wstEnvironmentBean.getParticipantServiceURLPath(); if (participantServiceURLPath == null) { participantServiceURLPath = "/ws-t11-participant"; } if (bindAddress == null) { bindAddress = "localhost"; } if (bindPort == 0) { bindPort = 8080; } if (secureBindPort == 0) { secureBindPort = 8443; } final String baseUri = "http://" + bindAddress + ":" + bindPort + participantServiceURLPath; final String uri = baseUri + "/" + BusinessActivityConstants.COORDINATOR_COMPLETION_PARTICIPANT_SERVICE_NAME; final String secureBaseUri = "https://" + bindAddress + ":" + secureBindPort + participantServiceURLPath; final String secureUri = secureBaseUri + "/" + BusinessActivityConstants.COORDINATOR_COMPLETION_PARTICIPANT_SERVICE_NAME; serviceRegistry.registerServiceProvider(BusinessActivityConstants.COORDINATOR_COMPLETION_PARTICIPANT_SERVICE_NAME, uri) ; serviceRegistry.registerSecureServiceProvider(BusinessActivityConstants.COORDINATOR_COMPLETION_PARTICIPANT_SERVICE_NAME, secureUri) ; }
public static void startup() { final ServiceRegistry serviceRegistry = ServiceRegistry.getRegistry() ; WSCEnvironmentBean wscEnvironmentBean = XTSPropertyManager.getWSCEnvironmentBean(); String bindAddress = wscEnvironmentBean.getBindAddress11(); int bindPort = wscEnvironmentBean.getBindPort11(); int secureBindPort = wscEnvironmentBean.getBindPortSecure11(); WSTEnvironmentBean wstEnvironmentBean = XTSPropertyManager.getWSTEnvironmentBean(); String clientServiceURLPath = wstEnvironmentBean.getClientServiceURLPath(); if (clientServiceURLPath == null) { clientServiceURLPath = "/ws-t11-client"; } if (bindAddress == null) { bindAddress = "localhost"; } if (bindPort == 0) { bindPort = 8080; } if (secureBindPort == 0) { secureBindPort = 8443; } final String baseUri = "http://" + bindAddress + ":" + bindPort + clientServiceURLPath; final String uri = baseUri + "/" + AtomicTransactionConstants.COMPLETION_INITIATOR_SERVICE_NAME; final String secureBaseUri = "https://" + bindAddress + ":" + secureBindPort + clientServiceURLPath; final String secureUri = secureBaseUri + "/" + AtomicTransactionConstants.COMPLETION_INITIATOR_SERVICE_NAME; serviceRegistry.registerServiceProvider(AtomicTransactionConstants.COMPLETION_INITIATOR_SERVICE_NAME, uri) ; serviceRegistry.registerSecureServiceProvider(AtomicTransactionConstants.COMPLETION_INITIATOR_SERVICE_NAME, secureUri) ; }
public static void startup() { final ServiceRegistry serviceRegistry = ServiceRegistry.getRegistry() ; WSCEnvironmentBean wscEnvironmentBean = XTSPropertyManager.getWSCEnvironmentBean(); String bindAddress = wscEnvironmentBean.getBindAddress11(); int bindPort = wscEnvironmentBean.getBindPort11(); int secureBindPort = wscEnvironmentBean.getBindPortSecure11(); WSTEnvironmentBean wstEnvironmentBean = XTSPropertyManager.getWSTEnvironmentBean(); String coordinatorServiceURLPath = wstEnvironmentBean.getCoordinatorServiceURLPath(); if (coordinatorServiceURLPath == null) { coordinatorServiceURLPath = "/ws-t11-coordinator"; } if (bindAddress == null) { bindAddress = "localhost"; } if (bindPort == 0) { bindPort = 8080; } if (secureBindPort == 0) { secureBindPort = 8443; } final String baseUri = "http://" + bindAddress + ":" + bindPort + coordinatorServiceURLPath; final String uri = baseUri + "/" + BusinessActivityConstants.COORDINATOR_COMPLETION_COORDINATOR_SERVICE_NAME; final String secureBaseUri = "https://" + bindAddress + ":" + secureBindPort + coordinatorServiceURLPath; final String secureUri = secureBaseUri + "/" + BusinessActivityConstants.COORDINATOR_COMPLETION_COORDINATOR_SERVICE_NAME; serviceRegistry.registerServiceProvider(BusinessActivityConstants.COORDINATOR_COMPLETION_COORDINATOR_SERVICE_NAME, uri) ; serviceRegistry.registerSecureServiceProvider(BusinessActivityConstants.COORDINATOR_COMPLETION_COORDINATOR_SERVICE_NAME, secureUri) ; }
public int getCoordinatorPort10() { if (coordinatorPort10 == 0) { // be sure to use the port appropriate to the protocol String scheme = getCoordinatorScheme10(); if ("https".equals(scheme)) { return bindPortSecure10; } else { return bindPort10; } } return coordinatorPort10; }
public int getCoordinatorPort11() { if (coordinatorPort11 == 0) { // be sure to use the port appropriate to the protocol String scheme = getCoordinatorScheme11(); if ("https".equals(scheme)) { return bindPortSecure11; } else { return bindPort11; } } return coordinatorPort11; }
public static void startup() { final ServiceRegistry serviceRegistry = ServiceRegistry.getRegistry() ; WSCEnvironmentBean wscEnvironmentBean = XTSPropertyManager.getWSCEnvironmentBean(); String bindAddress = wscEnvironmentBean.getBindAddress11(); int bindPort = wscEnvironmentBean.getBindPort11(); int secureBindPort = wscEnvironmentBean.getBindPortSecure11(); WSTEnvironmentBean wstEnvironmentBean = XTSPropertyManager.getWSTEnvironmentBean(); String participantServiceURLPath = wstEnvironmentBean.getParticipantServiceURLPath(); if (participantServiceURLPath == null) { participantServiceURLPath = "/ws-t11-participant"; } if (bindAddress == null) { bindAddress = "127.0.0.1"; } if (bindPort == 0) { bindPort = 8080; } if (secureBindPort == 0) { secureBindPort = 8443; } final String baseUri = "http://" + bindAddress + ":" + bindPort + participantServiceURLPath; final String uri = baseUri + "/" + BusinessActivityConstants.PARTICIPANT_COMPLETION_PARTICIPANT_SERVICE_NAME; final String secureBaseUri = "https://" + bindAddress + ":" + secureBindPort + participantServiceURLPath; final String secureUri = secureBaseUri + "/" + BusinessActivityConstants.PARTICIPANT_COMPLETION_PARTICIPANT_SERVICE_NAME; serviceRegistry.registerServiceProvider(BusinessActivityConstants.PARTICIPANT_COMPLETION_PARTICIPANT_SERVICE_NAME, uri) ; serviceRegistry.registerSecureServiceProvider(BusinessActivityConstants.PARTICIPANT_COMPLETION_PARTICIPANT_SERVICE_NAME, secureUri) ; }
public static void startup() { final ServiceRegistry serviceRegistry = ServiceRegistry.getRegistry() ; WSCEnvironmentBean wscEnvironmentBean = XTSPropertyManager.getWSCEnvironmentBean(); String bindAddress = wscEnvironmentBean.getBindAddress11(); int bindPort = wscEnvironmentBean.getBindPort11(); int secureBindPort = wscEnvironmentBean.getBindPortSecure11(); WSTEnvironmentBean wstEnvironmentBean = XTSPropertyManager.getWSTEnvironmentBean(); String clientServiceURLPath = wstEnvironmentBean.getClientServiceURLPath(); if (clientServiceURLPath == null) { clientServiceURLPath = "/ws-t11-client"; } if (bindAddress == null) { bindAddress = "127.0.0.1"; } if (bindPort == 0) { bindPort = 8080; } if (secureBindPort == 0) { secureBindPort = 8443; } final String baseUri = "http://" + bindAddress + ":" + bindPort + clientServiceURLPath; final String uri = baseUri + "/" + ArjunaTX11Constants.TERMINATION_PARTICIPANT_SERVICE_NAME; final String secureBaseUri = "https://" + bindAddress + ":" + secureBindPort + clientServiceURLPath; final String secureUri = secureBaseUri + "/" + ArjunaTX11Constants.TERMINATION_PARTICIPANT_SERVICE_NAME; serviceRegistry.registerServiceProvider(ArjunaTX11Constants.TERMINATION_PARTICIPANT_SERVICE_NAME, uri) ; serviceRegistry.registerSecureServiceProvider(ArjunaTX11Constants.TERMINATION_PARTICIPANT_SERVICE_NAME, secureUri) ; }
public static void startup() { final ServiceRegistry serviceRegistry = ServiceRegistry.getRegistry() ; WSCEnvironmentBean wscEnvironmentBean = XTSPropertyManager.getWSCEnvironmentBean(); String bindAddress = wscEnvironmentBean.getBindAddress11(); int bindPort = wscEnvironmentBean.getBindPort11(); int secureBindPort = wscEnvironmentBean.getBindPortSecure11(); WSTEnvironmentBean wstEnvironmentBean = XTSPropertyManager.getWSTEnvironmentBean(); String coordinatorServiceURLPath = wstEnvironmentBean.getCoordinatorServiceURLPath(); if (coordinatorServiceURLPath == null) { coordinatorServiceURLPath = "/ws-t11-coordinator"; } if (bindAddress == null) { bindAddress = "localhost"; } if (bindPort == 0) { bindPort = 8080; } if (secureBindPort == 0) { secureBindPort = 8443; } final String baseUri = "http://" + bindAddress + ":" + bindPort + coordinatorServiceURLPath; final String uri = baseUri + "/" + AtomicTransactionConstants.COMPLETION_COORDINATOR_RPC_SERVICE_NAME; final String secureBaseUri = "https://" + bindAddress + ":" + secureBindPort + coordinatorServiceURLPath; final String secureUri = secureBaseUri + "/" + AtomicTransactionConstants.COMPLETION_COORDINATOR_RPC_SERVICE_NAME; serviceRegistry.registerServiceProvider(AtomicTransactionConstants.COMPLETION_COORDINATOR_RPC_SERVICE_NAME, uri) ; serviceRegistry.registerSecureServiceProvider(AtomicTransactionConstants.COMPLETION_COORDINATOR_RPC_SERVICE_NAME, secureUri) ; }
public String getCoordinatorURL11() { if (coordinatorURL11 == null) { // compute the required value return getCoordinatorScheme11() + "://" + getCoordinatorAddress11() + ":" + getCoordinatorPort11() + "/" + getCoordinatorPath11(); } return coordinatorURL11; }
public String getCoordinatorURL10() { if (coordinatorURL10 == null) { // compute the required value return getCoordinatorScheme10() + "://" + getCoordinatorAddress10() + ":" + getCoordinatorPort10() + "/" + getCoordinatorPath10(); } return coordinatorURL10; }
/** * Returns the systems default properties, as read from the configuration file. * @return the configuration Properties */ public static Properties getDefaultProperties() { if(defaultProperties == null) { initDefaultProperties("org.jboss.jbossts.xts.propertiesFile"); } return defaultProperties; }
public int getCoordinatorPort10() { if (coordinatorPort10 == 0) { // be sure to use the port appropriate to the protocol String scheme = getCoordinatorScheme10(); if ("https".equals(scheme)) { return bindPortSecure10; } else { return bindPort10; } } return coordinatorPort10; }
public int getCoordinatorPort11() { if (coordinatorPort11 == 0) { // be sure to use the port appropriate to the protocol String scheme = getCoordinatorScheme11(); if ("https".equals(scheme)) { return bindPortSecure11; } else { return bindPort11; } } return coordinatorPort11; }
public static void startup() { final ServiceRegistry serviceRegistry = ServiceRegistry.getRegistry() ; WSCEnvironmentBean wscEnvironmentBean = XTSPropertyManager.getWSCEnvironmentBean(); String bindAddress = wscEnvironmentBean.getBindAddress11(); int bindPort = wscEnvironmentBean.getBindPort11(); int secureBindPort = wscEnvironmentBean.getBindPortSecure11(); WSTEnvironmentBean wstEnvironmentBean = XTSPropertyManager.getWSTEnvironmentBean(); String participantServiceURLPath = wstEnvironmentBean.getParticipantServiceURLPath(); if (participantServiceURLPath == null) { participantServiceURLPath = "/ws-t11-participant"; } if (bindAddress == null) { bindAddress = "localhost"; } if (bindPort == 0) { bindPort = 8080; } if (secureBindPort == 0) { secureBindPort = 8443; } final String baseUri = "http://" + bindAddress + ":" + bindPort + participantServiceURLPath; final String uri = baseUri + "/" + AtomicTransactionConstants.PARTICIPANT_SERVICE_NAME; final String secureBaseUri = "https://" + bindAddress + ":" + secureBindPort + participantServiceURLPath; final String secureUri = secureBaseUri + "/" + AtomicTransactionConstants.PARTICIPANT_SERVICE_NAME; serviceRegistry.registerServiceProvider(AtomicTransactionConstants.PARTICIPANT_SERVICE_NAME, uri) ; serviceRegistry.registerSecureServiceProvider(AtomicTransactionConstants.PARTICIPANT_SERVICE_NAME, secureUri) ; }
/** * Returns the URL to be used by XTS clients to address the Activation Coordinator service when starting a transaction. * If this is undefined then a URL is constructed using the scheme, host address, port and URL path specified in the properties file or, * where they are missing, using their default values. * * WS-C version: 1.1. * * @return the URL to be used by XTS clients to address the Activation Coordinator service when starting a transaction. */ public String getCoordinatorURL11() { if (coordinatorURL11 == null) { // compute the required value return getCoordinatorScheme11() + "://" + getCoordinatorAddress11() + ":" + getCoordinatorPort11() + "/" + getCoordinatorPath11(); } return coordinatorURL11; }
public static void startup() { final ServiceRegistry serviceRegistry = ServiceRegistry.getRegistry() ; WSCEnvironmentBean wscEnvironmentBean = XTSPropertyManager.getWSCEnvironmentBean(); String bindAddress = wscEnvironmentBean.getBindAddress11(); int bindPort = wscEnvironmentBean.getBindPort11(); int secureBindPort = wscEnvironmentBean.getBindPortSecure11(); WSTEnvironmentBean wstEnvironmentBean = XTSPropertyManager.getWSTEnvironmentBean(); String participantServiceURLPath = wstEnvironmentBean.getParticipantServiceURLPath(); if (participantServiceURLPath == null) { participantServiceURLPath = "/ws-t11-participant"; } if (bindAddress == null) { bindAddress = "localhost"; } if (bindPort == 0) { bindPort = 8080; } if (secureBindPort == 0) { secureBindPort = 8443; } final String baseUri = "http://" + bindAddress + ":" + bindPort + participantServiceURLPath; final String uri = baseUri + "/" + AtomicTransactionConstants.PARTICIPANT_SERVICE_NAME; final String secureBaseUri = "https://" + bindAddress + ":" + secureBindPort + participantServiceURLPath; final String secureUri = secureBaseUri + "/" + AtomicTransactionConstants.PARTICIPANT_SERVICE_NAME; serviceRegistry.registerServiceProvider(AtomicTransactionConstants.PARTICIPANT_SERVICE_NAME, uri) ; serviceRegistry.registerSecureServiceProvider(AtomicTransactionConstants.PARTICIPANT_SERVICE_NAME, secureUri) ; }
/** * Returns the URL to be used by XTS clients to address the Activation Coordinator service when starting a transaction. * If this is undefined then a URL is constructed using the scheme, host address, port and URL path specified in the properties file or, * where they are missing, using their default values. * * WS-C version: 1.1. * * @return the URL to be used by XTS clients to address the Activation Coordinator service when starting a transaction. */ public String getCoordinatorURL11() { if (coordinatorURL11 == null) { // compute the required value return getCoordinatorScheme11() + "://" + getCoordinatorAddress11() + ":" + getCoordinatorPort11() + "/" + getCoordinatorPath11(); } return coordinatorURL11; }