skip to main content
DataDirect Connect Drivers : Progress OpenEdge Driver : Configuring Failover : Specifying Connection Retry
  
Specifying Connection Retry
Connection retry allows the Progress OpenEdge driver to retry connections to the primary database server, and if specified, alternate servers until a successful connection is established. You use the ConnectionRetryCount and ConnectionRetryDelay properties to enable and control how connection retry works. For example:
jdbc:datadirect:openedge://server1:2003;DatabaseName=TestServer;
User=test;Password=secret;AlternateServers=(server2:2003;
DatabaseName=TEST2,server3:2003;DatabaseName=TEST3);ConnectionRetryCount=2;
ConnectionRetryDelay=5
In this example, if a successful connection is not established on the Progress OpenEdge driver’s first pass through the list of database servers (primary and alternate), the driver retries the list of servers in the same sequence twice (ConnectionRetryCount=2). If a successful connection is not established on the first retry pass through the list of servers, the driver makes another pass through the list of servers. Because the connection retry delay has been set to five seconds (ConnectionRetryDelay=5), the driver waits five seconds between retry passes.