tibemsConnectionFactory_SetServerURL


Function

Purpose

Set the server URL.

C Declaration

tibems_status tibemsConnectionFactory_SetServerURL( 
    tibemsConnectionFactory factory, 
    const char* url ); 

COBOL Call

CALL "tibemsConnectionFactory_SetServerURL" 
     USING BY VALUE factory, 
           BY REFERENCE url, 
           RETURNING tibems-status 
END-CALL. 

factory has usage pointer.

Parameter
Description
factory
Set the server URL of this connection factory.
url
The factory object contacts the EMS server at this URL, to access a corresponding factory defined by the administrator.

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


TIBCO Enterprise Message Service™ C and COBOL Reference
System Release 4.3, February 2006
Copyright © TIBCO Software Inc. All rights reserved
www.tibco.com