Passing the Connection URL

Advantage JDBC Driver

  Previous topic Next topic  

After registering the driver, you must pass your database connection information in the form of a connection URL. The following is a template URL for the Advantage JDBC Driver. Substitute the values specific to your database.

jdbc:extendedsystems:advantage://server_name:6262

For example, to specify a connection URL that includes the user ID "user1" and the password "secret":

Connection conn = DriverManager.getConnection

("jdbc:extendedsystems:advantage://server1:6262","user1","secret");

Note The server_name is an IP address or a host name, assuming that your network resolves host names to IP addresses. You can test this by using the ping command to access the host name and verifying that you receive a reply with the correct IP address.

 

The numeric value after the server name is the port number on which the Advantage Database Server is listening. The values listed here are sample defaults. You should determine the port number that your database is using and substitute that value.

 

For the complete list of Connection URL parameters see Connection String Properties.