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 6: Driver Connection Properties <strong>and</strong> Data Types by Database Br<strong>and</strong><br />

Specifying Alternate Servers for the <strong>Progress</strong> OpenEdge Driver<br />

The following connection URL for the <strong>Progress</strong> OpenEdge driver specifies connection<br />

information for the primary <strong>and</strong> alternate servers:<br />

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

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

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

In this example:<br />

...server1:2003;HostName=TestServer;<br />

DatabaseName=TestServer...<br />

is the part of the connection URL that specifies connection information for the primary<br />

server. Alternate servers are specified using the AlternateServers property. For example:<br />

...;AlternateServers=(server2:2003;<br />

HostName=TestServer2,server3:2003)<br />

Similarly, connection information for the primary server specified using a JDBC data<br />

source would look something like this:<br />

OpenedgeDataSource mds = new OpenedgeDataSource();<br />

mds.setDescription("My OpenedgeDataSource");<br />

mds.setServerName("server1");<br />

mds.setPortNumber(2003);<br />

mds.setHostName("TestServer");<br />

mds.setDatabaseName("TestServer");<br />

mds.setUser("test");<br />

mds.setPassword("secret");<br />

mds.setAlternateServers=(server2:2003;HostName=<br />

TestServer2,server3:2003)<br />

In this example, connection information for the primary server is specified using the<br />

ServerName, PortNumber, HostName, <strong>and</strong> DatabaseName properties. Connection<br />

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

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