IBM DB2 Manual page 220

Table of Contents

Advertisement

|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
204
Application Programming Guide and Reference for Java
If more than one server name is specified, delimit the server names with
commas (,) or spaces. The number of values that is specified for
clientRerouteAlternateServerName must match the number of values that is
specified for clientRerouteAlternatePortNumber.
clientRerouteAlternateServerName applies to IBM Data Server Driver for JDBC
and SQLJ type 2 connectivity to DB2 Database for Linux, UNIX, and Windows
and IBM Data Server Driver for JDBC and SQLJ type 4 connectivity.
clientRerouteAlternatePortNumber
Specifies one or more port numbers for client reroute. The data type of this
property is String.
When enableClientAffinitiesList=DB2BaseDataSource.YES (1),
clientRerouteAlternatePortNumber must contain the port number for the
primary server as well as port numbers for alternate servers. The server that is
identified by serverName and portNumber is the primary server. That port
number must appear at the beginning of the
clientRerouteAlternatePortNumber list.
If more than one port number is specified, delimit the port numbers with
commas (,) or spaces. The number of values that is specified for
clientRerouteAlternatePortNumber must match the number of values that is
specified for clientRerouteAlternateServerName.
clientRerouteAlternatePortNumber applies to IBM Data Server Driver for JDBC
and SQLJ type 2 connectivity to DB2 Database for Linux, UNIX, and Windows
and IBM Data Server Driver for JDBC and SQLJ type 4 connectivity.
clientRerouteServerListJNDIName
Identifies a JNDI reference to a DB2ClientRerouteServerList instance in a JNDI
repository of reroute server information. clientRerouteServerListJNDIName
applies only to IBM Data Server Driver for JDBC and SQLJ type 4 connectivity,
and to connections that are established through the DataSource interface.
If the value of clientRerouteServerListJNDIName is not null,
clientRerouteServerListJNDIName provides the following functions:
v Allows information about reroute servers to persist across JVMs
v Provides an alternate server location if the first connection to the data source
fails
clientRerouteServerListJNDIContext
Specifies the JNDI context that is used for binding and lookup of the
DB2ClientRerouteServerList instance. clientRerouteServerListJNDIContext
applies only to IBM Data Server Driver for JDBC and SQLJ type 4 connectivity,
and to connections that are established through the DataSource interface.
If clientRerouteServerListJNDIContext is not set, the IBM Data Server Driver
for JDBC and SQLJ creates an initial context using system properties or the
jndi.properties file.
clientRerouteServerListJNDIContext can be set only by using the following
method:
public void setClientRerouteServerListJNDIContext(javax.naming.Context registry)
databaseName
Specifies the name for the data source. This name is used as the database
portion of the connection URL. The name depends on whether IBM Data
Server Driver for JDBC and SQLJ type 4 connectivity or IBM Data Server
Driver for JDBC and SQLJ type 2 connectivity is used.
For IBM Data Server Driver for JDBC and SQLJ type 4 connectivity:

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents