tibemsConnectionFactory_SetReconnectAttemptCount


Function

Purpose

Modify the reconnection attempts setting.

C Declaration

tibems_status tibemsConnectionFactory_SetReconnectAttemptCount( 
    tibemsConnectionFactory factory, 
    tibems_int connAttempts ); 

COBOL Call

CALL "tibemsConnectionFactory_SetReconnectAttemptCount" 
     USING BY VALUE factory, 
           BY VALUE connAttempts, 
           RETURNING tibems-status 
END-CALL. 

factory has usage pointer.

Remarks

tibemsConnection objects attempt to reconnect to the server after a network disconnect.

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. See tibemsConnectionFactory_SetServerURL .

Parameter
Description
factory
Set the reconnection attempts parameter of this connection factory.
connAttempts
This value limits the number of times that a connection object attempts to reestablish a connection to the server. The minimum value is 1.
When this property is not set, the default value is 4.

See Also

tibemsConnectionFactory_SetReconnectAttemptDelay


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