10.02.2013 Views

Progress Sonic ESB Configuration and Management Guide

Progress Sonic ESB Configuration and Management Guide

Progress Sonic ESB Configuration and Management Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 5: Using the Database Service JDBC Drivers<br />

In this example, it is probable that at least one connection attempt will succeed, but if no<br />

connection attempt succeeds, the driver can retry each database server (primary <strong>and</strong><br />

alternates) for a specified number of attempts. The JDBC drivers allow you to customize<br />

the connection retry feature to specify the number of attempts that are made.<br />

A JDBC driver fails over to the next alternate database server only if a successful<br />

connection cannot be established with the current alternate server. If the driver<br />

successfully establishes communication with a database server <strong>and</strong> the connection request<br />

is rejected by the database server because the login information is invalid, for example,<br />

the driver does not try to connect to the next database server in the list <strong>and</strong> generates an<br />

exception.<br />

Connection failover provides protection for new connections only <strong>and</strong> does not preserve<br />

states for transactions or queries.<br />

To use connection failover, see the appropriate section for your database for a list of<br />

property=value pairs to add to your connection URL:<br />

● “<strong>Progress</strong> OpenEdge Connection Failover Properties” on page 144<br />

● “DB2 Driver Connection Failover Properties” on page 161<br />

● “Informix Driver Connection Failover Properties” on page 172<br />

● “Oracle Driver Connection Failover Properties” on page 186<br />

● “Microsoft SQL Server Driver Connection Failover Properties” on page 200<br />

● “Sybase Driver Connection Failover Properties” on page 213<br />

Connection Retry<br />

Connection retry allows the JDBC driver to retry connections to a list of database servers<br />

(primary <strong>and</strong> alternate) until a successful connection is established. Use the<br />

ConnectionRetryCount <strong>and</strong> ConnectionRetryDelay properties to enable <strong>and</strong> control how<br />

connection retry works.<br />

In the following examples for the different JDBC drivers, if a successful connection is not<br />

established on the driver’s first pass through the list of database servers (primary <strong>and</strong><br />

alternate), the driver retries the list of servers in the same sequence twice<br />

(ConnectionRetryCount=2). If a successful connection is not established on the first retry<br />

pass through the list of servers, the driver makes another pass through the list of servers.<br />

Because the connection retry delay has been set to five seconds<br />

(ConnectionRetryDelay=5), the driver waits five seconds between retry passes.<br />

133 <strong>Progress</strong> <strong>Sonic</strong> <strong>ESB</strong> <strong>Configuration</strong> <strong>and</strong> <strong>Management</strong> <strong>Guide</strong> 8.5

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!