Collapse All Expand All

.NET Framework Class Library
XAConnectionFactory Class See Also

[TIBCO.EMS .NET client library 5.1 documentation]

set the server url.

Namespace: TIBCO.EMS
Assembly: TIBCO.EMS (in TIBCO.EMS.dll)

# Syntax

    public void SetServerUrl(
    	string serverUrl
    )

    Public Sub SetServerUrl ( _
    	serverUrl As String _
    )

    public:
    void SetServerUrl(
    	String^ serverUrl
    )

#### Parameters

serverUrl
  Type: System..::.String
  The constructor contacts the EMS server at this URL, to access a factory. If connecting a fault-tolerant client, specify two or more comma-separated URLs, as described below inReconnect and Fault Tolerance.

# Remarks

The server URL is of the form:

| Copy Code
--- | ---
    protocol://hostName:portNumber

For example:

| Copy Code
--- | ---
    tcp://localhost:7222

The server URL for a fault-tolerant configuration is a string with multiple URL's that are comma separated.

For example:

| Copy Code
--- | ---
    tcp://localhost:7222,tcp://localhost:7224

# Exceptions

Exception | Condition
--- | ---
TIBCO.EMS..::.EMSException | Url is already set or some other error.

# See Also

XAConnectionFactory Class
TIBCO.EMS Namespace