Collapse All Expand All

.NET Framework Class Library
EMSDTCConnectionFactory Class See Also

[TIBCO.EMS .NET client library 5.1 documentation]

Construct a EMSDTCConnectionFactory given server url, client id and properties

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

# Syntax

    public EMSDTCConnectionFactory(
    	string serverUrl,
    	string clientId,
    	Hashtable properties
    )

    Public Sub New ( _
    	serverUrl As String, _
    	clientId As String, _
    	properties As Hashtable _
    )

    public:
    EMSDTCConnectionFactory(
    	String^ serverUrl,
    	String^ clientId,
    	Hashtable^ properties
    )

#### 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.

clientId
  Type: System..::.String
  The id of the client.

  A client ID string lets the server associate a client-specific factory with each client program. When present, the server supplies that factory to the client. If a factory does not yet exist for the client, the server creates one, and stores it for future use by that specific client.

properties
  Type: System.Collections..::.Hashtable
  The properties of the client such as user name and password.

  When present, these properties govern the behavior of the connection objects that a client-specific factory creates. For a list of properties, see the Connection-Related Fields in the Tibems members.

# Remarks

When administrators define factories in the EMS server, these constructors automatically access the corresponding objects in the repository.

Reconnect and Fault Tolerance

To enable reconnection behavior and fault tolerance, the connection factory’s server URL parameter must be a comma-separated list of two or more URLs. To enable client reconnection in a situation with only one server, you may supply two copies of that server’s URL (for example, tcp://localhost:7222,tcp://localhost:7222)

# See Also

EMSDTCConnectionFactory Class
EMSDTCConnectionFactory Overload
TIBCO.EMS Namespace