Collapse All Expand All

.NET Framework Class Library
ConnectionFactory Class See Also

[TIBCO.EMS.UFOCLIENT .NET client library 5.1 documentation]

set the server url.

Namespace: TIBCO.EMS.UFO
Assembly: TIBCO.EMS.UFO (in TIBCO.EMS.UFO.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
--- | ---
EMSException | Url is already set or some other error.

# See Also

ConnectionFactory Class
TIBCO.EMS.UFO Namespace