Tabnine Logo
ServiceRegistry
Code IndexAdd Tabnine to your IDE (free)

How to use
ServiceRegistry
in
com.arjuna.webservices11

Best Java code snippets using com.arjuna.webservices11.ServiceRegistry (Showing top 20 results out of 315)

origin: org.jboss.jbossts.xts/jbossxts

/**
 * Construct the terminator participant client.
 */
private TerminationCoordinatorClient()
{
  MAPBuilder builder = MAPBuilderFactory.getInstance().getBuilderInstance();
  completeAction = ArjunaTXConstants.WSARJTX_ACTION_COMPLETE;
  closeAction = ArjunaTXConstants.WSARJTX_ACTION_CLOSE;
  cancelAction = ArjunaTXConstants.WSARJTX_ACTION_CANCEL;
  final String terminationParticipantURIString =
    ServiceRegistry.getRegistry().getServiceURI(ArjunaTX11Constants.TERMINATION_PARTICIPANT_SERVICE_NAME, false);
  final String secureTerminationParticipantURIString =
    ServiceRegistry.getRegistry().getServiceURI(ArjunaTX11Constants.TERMINATION_PARTICIPANT_SERVICE_NAME, true);
  terminationParticipant = builder.newEndpoint(terminationParticipantURIString);
  secureTerminationParticipant = builder.newEndpoint(secureTerminationParticipantURIString);
}
origin: org.jboss.jbossts.xts/jbossxts

  /**
   * Get the service URI.
   * @param serviceName The service name.
   * @param isSecure true if the secure service URL is required false if the normal service URL is required
   * @return The service URI or null if not registered.
   */
  public String getServiceURI(final String serviceName, boolean isSecure)
  {
    if (isSecure) {
      return getSecureServiceURI(serviceName);
    } else {
      return getServiceURI(serviceName);
    }
  }
}
origin: org.jboss.jbossts/jbossxts

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();
  String serviceURLPath = wscEnvironmentBean.getServiceURLPath();
  if (serviceURLPath == null) {
    serviceURLPath = "/ws-c11";
  }
  if (bindAddress == null) {
    bindAddress = "127.0.0.1";
  }
  if (bindPort == 0) {
    bindPort = 8080;
  }
  if (secureBindPort == 0) {
    secureBindPort = 8443;
  }
  final String baseUri = "http://" +  bindAddress + ":" + bindPort + serviceURLPath;
  final String uri = baseUri + "/ActivationService";
  final String secureBaseUri = "https://" + bindAddress + ":" + secureBindPort + serviceURLPath;
  final String secureUri = secureBaseUri + "/ActivationService";
  serviceRegistry.registerServiceProvider(CoordinationConstants.ACTIVATION_SERVICE_NAME, uri) ;
  serviceRegistry.registerSecureServiceProvider(CoordinationConstants.ACTIVATION_SERVICE_NAME, secureUri) ;
}
origin: jbosstm/narayana

public static void startup()
{
  final ServiceRegistry serviceRegistry = PrivilegedServiceRegistryFactory.getInstance().getServiceRegistry();
  WSCEnvironmentBean wscEnvironmentBean = XTSPropertyManager.getWSCEnvironmentBean();
  String bindAddress = wscEnvironmentBean.getBindAddress11();
  int bindPort = wscEnvironmentBean.getBindPort11();
  int secureBindPort = wscEnvironmentBean.getBindPortSecure11();
  String serviceURLPath = wscEnvironmentBean.getServiceURLPath();
  if (serviceURLPath == null) {
    serviceURLPath = "/ws-c11";
  }
  if (bindAddress == null) {
    bindAddress = "localhost";
  }
  if (bindPort == 0) {
    bindPort = 8080;
  }
  if (secureBindPort == 0) {
    secureBindPort = 8443;
  }
  final String baseUri = "http://" +  bindAddress + ":" + bindPort + serviceURLPath;
  final String uri = baseUri + "/ActivationService";
  final String secureBaseUri = "https://" + bindAddress + ":" + secureBindPort + serviceURLPath;
  final String secureUri = secureBaseUri + "/ActivationService";
  serviceRegistry.registerServiceProvider(CoordinationConstants.ACTIVATION_SERVICE_NAME, uri) ;
  serviceRegistry.registerSecureServiceProvider(CoordinationConstants.ACTIVATION_SERVICE_NAME, secureUri) ;
}
origin: jbosstm/narayana

@Override
public ServiceRegistry run() {
  return ServiceRegistry.getRegistry();
}
origin: org.jboss.jbossts.xts/jbossxts

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();
  String serviceURLPath = wscEnvironmentBean.getServiceURLPath();
  if (serviceURLPath == null) {
    serviceURLPath = "/ws-c11";
  }
  if (bindAddress == null) {
    bindAddress = "localhost";
  }
  if (bindPort == 0) {
    bindPort = 8080;
  }
  if (secureBindPort == 0) {
    secureBindPort = 8443;
  }
  final String baseUri = "http://" +  bindAddress + ":" + bindPort + serviceURLPath;
  final String uri = baseUri + "/ActivationService";
  final String secureBaseUri = "https://" + bindAddress + ":" + secureBindPort + serviceURLPath;
  final String secureUri = secureBaseUri + "/ActivationService";
  serviceRegistry.registerServiceProvider(CoordinationConstants.ACTIVATION_SERVICE_NAME, uri) ;
  serviceRegistry.registerSecureServiceProvider(CoordinationConstants.ACTIVATION_SERVICE_NAME, secureUri) ;
}
origin: jbosstm/narayana

final String secureUri = secureBaseUri + "/CoordinationFaultService";
serviceRegistry.registerServiceProvider(CoordinationConstants.COORDINATION_SOAP_FAULT_SERVICE_NAME, uri) ;
serviceRegistry.registerSecureServiceProvider(CoordinationConstants.COORDINATION_SOAP_FAULT_SERVICE_NAME, secureUri); ;
origin: org.jboss.narayana.xts/ws-c11

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();
  String serviceURLPath = wscEnvironmentBean.getServiceURLPath();
  if (serviceURLPath == null) {
    serviceURLPath = "/ws-c11";
  }
  if (bindAddress == null) {
    bindAddress = "localhost";
  }
  if (bindPort == 0) {
    bindPort = 8080;
  }
  if (secureBindPort == 0) {
    secureBindPort = 8443;
  }
  final String baseUri = "http://" +  bindAddress + ":" + bindPort + serviceURLPath;
  final String uri = baseUri + "/ActivationService";
  final String secureBaseUri = "https://" + bindAddress + ":" + secureBindPort + serviceURLPath;
  final String secureUri = secureBaseUri + "/ActivationService";
  serviceRegistry.registerServiceProvider(CoordinationConstants.ACTIVATION_SERVICE_NAME, uri) ;
  serviceRegistry.registerSecureServiceProvider(CoordinationConstants.ACTIVATION_SERVICE_NAME, secureUri) ;
}
origin: org.jboss.jbossts.xts/jbossxts

/**
 * Construct the completion initiator client.
 */
private CompletionInitiatorClient()
{
  final MAPBuilder builder = MAPBuilderFactory.getInstance().getBuilderInstance();
  committedAction = AtomicTransactionConstants.WSAT_ACTION_COMMITTED;
  abortedAction = AtomicTransactionConstants.WSAT_ACTION_ABORTED;
  faultAction = AtomicTransactionConstants.WSAT_ACTION_FAULT;
  final String completionCoordinatorURIString =
    ServiceRegistry.getRegistry().getServiceURI(AtomicTransactionConstants.COMPLETION_COORDINATOR_SERVICE_NAME, false) ;
  final String secureCompletionCoordinatorURIString =
    ServiceRegistry.getRegistry().getServiceURI(AtomicTransactionConstants.COMPLETION_COORDINATOR_SERVICE_NAME, true) ;
  completionCoordinator = builder.newEndpoint(completionCoordinatorURIString);
  secureCompletionCoordinator = builder.newEndpoint(secureCompletionCoordinatorURIString);
}
origin: org.jboss.narayana.xts/ws-c11

  /**
   * Get the service URI.
   * @param serviceName The service name.
   * @param isSecure true if the secure service URL is required false if the normal service URL is required
   * @return The service URI or null if not registered.
   */
  public String getServiceURI(final String serviceName, boolean isSecure)
  {
    if (isSecure) {
      return getSecureServiceURI(serviceName);
    } else {
      return getServiceURI(serviceName);
    }
  }
}
origin: jbosstm/narayana

final String secureUri = secureBaseUri + "/RegistrationResponseService";
serviceRegistry.registerServiceProvider(CoordinationConstants.REGISTRATION_RESPONSE_SERVICE_NAME, uri) ;
serviceRegistry.registerSecureServiceProvider(CoordinationConstants.REGISTRATION_RESPONSE_SERVICE_NAME, secureUri); ;
origin: org.jboss.jbossts.xts/jbossxts

final ServiceRegistry serviceRegistry = ServiceRegistry.getRegistry() ;
WSCEnvironmentBean wscEnvironmentBean = XTSPropertyManager.getWSCEnvironmentBean();
String bindAddress = wscEnvironmentBean.getBindAddress11();
final String secureUri = secureBaseUri + "/RegistrationService";
serviceRegistry.registerServiceProvider(CoordinationConstants.REGISTRATION_SERVICE_NAME, uri) ;
serviceRegistry.registerSecureServiceProvider(CoordinationConstants.REGISTRATION_SERVICE_NAME, secureUri); ;
origin: org.jboss.jbossts/jbossxts

/**
 * Construct the completion initiator client.
 */
private CompletionInitiatorClient()
{
  final MAPBuilder builder = MAPBuilderFactory.getInstance().getBuilderInstance();
  committedAction = AtomicTransactionConstants.WSAT_ACTION_COMMITTED;
  abortedAction = AtomicTransactionConstants.WSAT_ACTION_ABORTED;
  faultAction = AtomicTransactionConstants.WSAT_ACTION_FAULT;
  final String completionCoordinatorURIString =
    ServiceRegistry.getRegistry().getServiceURI(AtomicTransactionConstants.COMPLETION_COORDINATOR_SERVICE_NAME, false) ;
  final String secureCompletionCoordinatorURIString =
    ServiceRegistry.getRegistry().getServiceURI(AtomicTransactionConstants.COMPLETION_COORDINATOR_SERVICE_NAME, true) ;
  completionCoordinator = builder.newEndpoint(completionCoordinatorURIString);
  secureCompletionCoordinator = builder.newEndpoint(secureCompletionCoordinatorURIString);
}
origin: org.jboss.jbossts/jbossxts

  /**
   * Get the service URI.
   * @param serviceName The service name.
   * @param isSecure true if the secure service URL is required false if the normal service URL is required
   * @return The service URI or null if not registered.
   */
  public String getServiceURI(final String serviceName, boolean isSecure)
  {
    if (isSecure) {
      return getSecureServiceURI(serviceName);
    } else {
      return getServiceURI(serviceName);
    }
  }
}
origin: jbosstm/narayana

final String secureUri = secureBaseUri + "/RegistrationService";
serviceRegistry.registerServiceProvider(CoordinationConstants.REGISTRATION_SERVICE_NAME, uri) ;
serviceRegistry.registerSecureServiceProvider(CoordinationConstants.REGISTRATION_SERVICE_NAME, secureUri); ;
origin: org.jboss.jbossts/jbossxts

final ServiceRegistry serviceRegistry = ServiceRegistry.getRegistry() ;
WSCEnvironmentBean wscEnvironmentBean = XTSPropertyManager.getWSCEnvironmentBean();
String bindAddress = wscEnvironmentBean.getBindAddress11();
final String secureUri = secureBaseUri + "/RegistrationService";
serviceRegistry.registerServiceProvider(CoordinationConstants.REGISTRATION_SERVICE_NAME, uri) ;
serviceRegistry.registerSecureServiceProvider(CoordinationConstants.REGISTRATION_SERVICE_NAME, secureUri); ;
origin: org.jboss.jbossts.xts/ws-t11

/**
 * Construct the terminator participant client.
 */
private TerminationCoordinatorClient()
{
  MAPBuilder builder = MAPBuilderFactory.getInstance().getBuilderInstance();
  completeAction = ArjunaTXConstants.WSARJTX_ACTION_COMPLETE;
  closeAction = ArjunaTXConstants.WSARJTX_ACTION_CLOSE;
  cancelAction = ArjunaTXConstants.WSARJTX_ACTION_CANCEL;
  final String terminationParticipantURIString =
    ServiceRegistry.getRegistry().getServiceURI(ArjunaTX11Constants.TERMINATION_PARTICIPANT_SERVICE_NAME, false);
  final String secureTerminationParticipantURIString =
    ServiceRegistry.getRegistry().getServiceURI(ArjunaTX11Constants.TERMINATION_PARTICIPANT_SERVICE_NAME, true);
  terminationParticipant = builder.newEndpoint(terminationParticipantURIString);
  secureTerminationParticipant = builder.newEndpoint(secureTerminationParticipantURIString);
}
origin: jbosstm/narayana

  /**
   * Get the service URI.
   * @param serviceName The service name.
   * @param isSecure true if the secure service URL is required false if the normal service URL is required
   * @return The service URI or null if not registered.
   */
  public String getServiceURI(final String serviceName, boolean isSecure)
  {
    if (isSecure) {
      return getSecureServiceURI(serviceName);
    } else {
      return getServiceURI(serviceName);
    }
  }
}
origin: org.jboss.narayana.xts/ws-c11

final ServiceRegistry serviceRegistry = ServiceRegistry.getRegistry() ;
WSCEnvironmentBean wscEnvironmentBean = XTSPropertyManager.getWSCEnvironmentBean();
String bindAddress = wscEnvironmentBean.getBindAddress11();
final String secureUri = secureBaseUri + "/RegistrationService";
serviceRegistry.registerServiceProvider(CoordinationConstants.REGISTRATION_SERVICE_NAME, uri) ;
serviceRegistry.registerSecureServiceProvider(CoordinationConstants.REGISTRATION_SERVICE_NAME, secureUri); ;
origin: org.jboss.jbossts/jbossxts

/**
 * Construct the terminator participant client.
 */
private TerminationCoordinatorClient()
{
  MAPBuilder builder = MAPBuilderFactory.getInstance().getBuilderInstance();
  completeAction = ArjunaTXConstants.WSARJTX_ACTION_COMPLETE;
  closeAction = ArjunaTXConstants.WSARJTX_ACTION_CLOSE;
  cancelAction = ArjunaTXConstants.WSARJTX_ACTION_CANCEL;
  final String terminationParticipantURIString =
    ServiceRegistry.getRegistry().getServiceURI(ArjunaTX11Constants.TERMINATION_PARTICIPANT_SERVICE_NAME, false);
  final String secureTerminationParticipantURIString =
    ServiceRegistry.getRegistry().getServiceURI(ArjunaTX11Constants.TERMINATION_PARTICIPANT_SERVICE_NAME, true);
  terminationParticipant = builder.newEndpoint(terminationParticipantURIString);
  secureTerminationParticipant = builder.newEndpoint(secureTerminationParticipantURIString);
}
com.arjuna.webservices11ServiceRegistry

Javadoc

The registry of WS service providers for the WS-C and WS-T services.

Most used methods

  • getRegistry
    Get the service registry.
  • getServiceURI
    Get the service URI.
  • registerSecureServiceProvider
    Register the specified secure service.
  • registerServiceProvider
    Register the specified service.
  • getSecureServiceURI
    Get the secure service URI.

Popular in Java

  • Running tasks concurrently on multiple threads
  • requestLocationUpdates (LocationManager)
  • scheduleAtFixedRate (Timer)
  • getSharedPreferences (Context)
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now