Constructor
ConnectionFactory( string serverUrl, string clientId, Hashtable properties ); ConnectionFactory( string serverUrl, string clientId ); ConnectionFactory( string serverUrl ); ConnectionFactory();
Create a connection factory.
When administrators define factories in the EMS server, these constructors automatically access the corresponding objects in the repository.
Parameter
|
Description
|
---|---|
serverUrl
|
The constructor contacts the EMS server at this URL, to access a factory.
|
clientId
|
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
|
When present, these properties govern the behavior of the connection objects that a client-specific factory creates. For a list of properties, see Connection-Related Fields (Constants).
|
To enable reconnection behavior and fault tolerance, the serverURL
parameter must be a comma-separated list of two or more URLs. In a situation with only one server, you may supply two copies of that server’s URL to enable client reconnection (for example, tcp://localhost:7222,tcp://localhost:7222
).
TIBCO Enterprise Message Service™ .NET Reference System Release 4.3, February 2006 Copyright © TIBCO Software Inc. All rights reserved www.tibco.com |