Operation of the Realm Server Connect Call

When a client program contacts a realm server, the realm connect call uses these algorithms:

One Server

If the program’s realm object has only a single URL for the realm server, the realm connect call sends requests to the server at that URL.

If the server does not respond to repeated requests, the realm connect call throws an exception.

Fault-Tolerant Servers

If the program’s realm object has two URLs for the realm server, they indicate primary and secondary realm servers. The realm connect call sends requests first to the primary URL.

If the primary server does not respond to the first request, the realm connect call sends the request to the secondary URL. If the secondary server also does not respond, the realm connect call sends repeated requests, alternating between primary and secondary.

If neither server responds to repeated requests, the realm connect call throws an exception.