# tibemsConnectionFactory_SetConnectAttemptCount

Function

## Purpose

Modify the connection attempts setting.

## C Declaration

    tibems_status tibemsConnectionFactory_SetConnectAttemptCount(
        tibemsConnectionFactory factory,
        tibems_int connAttempts );

## COBOL Call

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

Note: `factory` has usage pointer.

## Parameters

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

## See Also

`tibemsConnectionFactory_SetConnectAttemptDelay` `tibemsConnectionFactory_SetConnectAttemptTimeout`

"Setting Connection Attempts, Timeout and Delay Parameters" in the TIBCO Enterprise Message Service User’s Guide

Copyright © Cloud Software Group, Inc. All rights reserved.