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).
Note that tibemsConnectionFactory_SetServerURL can be used to set the server URL for a connection factory only once. If the URL has previously been set for the connection factory,
tibemsConnectionFactory_SetServerURL returns the status code
TIBEMS_EXCEPTION.