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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Using the AlternateServers Property<br />

<strong>Progress</strong> OpenEdge Database<br />

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

property with either a connection URL through the JDBC Driver Manager or a JDBC data<br />

source. The value of the AlternateServers property is a string that 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 ofthe second alternate database server, <strong>and</strong><br />

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

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

port number is optional for each alternate server entry. If unspecified, the port number<br />

specified for the primary server is used.<br />

property=value is either of the following connection properties: DatabaseName or<br />

HostName. These connection properties are optional for each alternate server entry.<br />

For example:<br />

jdbc:datadirect:openedge://server1:2003;HostName=TestServer;<br />

DatabaseName=TestServer;User=test;Password=secret;<br />

AlternateServers=(server2:2003;HostName=TestServer2;<br />

DatabaseName=TestServer,server3:2003)<br />

If you do not specify an optional connection property in an alternate server entry, the<br />

connection to that alternate server uses the property specified in the URL. For example, if<br />

youspecify HostName=TestServer <strong>and</strong> DatabaseName=TestServer for the primary server,<br />

but do not specify the HostName <strong>and</strong> DatabaseName properties in the alternate server<br />

entry as shown in the following URL, the driver uses the HostName <strong>and</strong> DatabaseName<br />

specified for the primary server <strong>and</strong> tries to connect to the TestServer database on the<br />

<strong>Progress</strong> OpenEdge server TestServer:<br />

jdbc:datadirect:openedge://server1:2003;HostName=TestServer;<br />

DatabaseName=TestServer;AlternateServers=(server2:2003,server3:2003)<br />

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

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

Saved successfully!

Ooh no, something went wrong!