Chapter 3. Sequoia JDBC URL

The JDBC URL expected for the use with Sequoia is the following:

jdbc:sequoia://host1:port1,host2:port2/database

host is the machine name (or IP address) where the Sequoia controller is running, port is the port the controller is listening for client connections.

At least one host must be specified but a list of comma separated hosts can be specified. If several hosts are given, one is picked up randomly from the list. If the currently selected controller fails, another one is automatically picked up from the list.

The port is optional in the URL and the default port number is 25322 if it is omitted. Those two examples are equivalent:

jdbc:sequoia://localhost/tpcw
jdbc:sequoia://localhost:25322/tpcw 

Examples using two controllers for fault tolerance:

jdbc:sequoia://c1.continuent.org,c2.objectweb.org/tpcw
jdbc:sequoia://localhost,remote.continuent.org:2048/tpcw
jdbc:sequoia://smpnode.com:25322,smpnode.com:1098/tpcw

URL options

The Sequoia driver accepts additional options to override the default behavior of the driver. The options are appended at the end of the Sequoia URL after a question mark followed by a list of ampersands separated options. Here is an example:

jdbc:sequoia://host/db?user=me&password=secret

Another option is to use semicolons to delimit the start of options and options themselves. Example:

jdbc:sequoia://host/db;user=me;password=secret 

The recognized options are:

NOTE: For additional Sequoia configuration details, please consult Sequoia documentation.