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 />

Connection Retry Example for Sybase Driver<br />

jdbc:progress:sybase://server1:4100;DatabaseName=TEST;<br />

AlternateServers=(server2:4100;DatabaseName=TEST2,<br />

server3:4100;DatabaseName=TEST3);ConnectionRetryCount=2;<br />

ConnectionRetryDelay=5<br />

Specifying Primary <strong>and</strong> Alternate Servers<br />

The <strong>Sonic</strong> Database Service JDBC drivers allow you to specify a list of alternate database<br />

servers that are tried at connection time if the primary server is not accepting connections<br />

using the AlternateServers property. Connection attempts continue until a connection is<br />

successfully established or until all the database servers (primary <strong>and</strong> alternate) have been<br />

tried the specified number of times.<br />

Connection information for alternate servers is specified using the AlternateServers<br />

property in a connection URL. The value of the AlternateServers property is a string that<br />

has the format:<br />

(servername1[:port1][;property=value[;...]],servername2[:port2]<br />

[;property=value[;...]],...)<br />

where:<br />

● servername1 is the IP address or server name of the first alternate database server,<br />

servername2 is the IP address or server name of the second alternate database server,<br />

<strong>and</strong> so on. The IP address or server name is required for each alternate server entry.<br />

● port1 is the port number on which the first alternate database server is listening, port2<br />

is the port number on which the second alternate database server is listening, <strong>and</strong> so<br />

on. Port numbers are optional for each alternate server entry. If unspecified, the port<br />

number specified for the primary server is used. If a port number is unspecified for<br />

the primary server, the default port number is used (see Table 4 on page 130 to locate<br />

the appendix containing information on the default PortNumber values for the JDBC<br />

drivers).<br />

● property=value is an optional connection property, based on the JDBC driver to<br />

which you are connecting.<br />

135 <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!