![]() |
Cloudscape Access Using RmiJdbc
|
|
Accessing RmiJdbc Server from a Client
Client Class PathClients need to install and set the class path to point to the libraries indicated in Libraries. To summarize, clients need the following files and directories, shown in their paths relative to the cloudscape base directory:
JDBC Driver and Database Connection URL for an RmiJdbc ClientThe Cloudscape Developer's Guide documents the database connection URL for using Cloudscape as an embedded database. RmiJdbc supplies a tailored JDBC driver and database connection URL for use with a client. In client code, specify the client JDBC driver for connecting to a Cloudscape server: Class.forName("COM.cloudscape.core.RmiJdbcDriver").newInstance(); You can specify the driver in a system property when starting a client tool. For example (using supplied Cloudscape tools): java -Djdbc.drivers=COM.cloudscape.core.RmiJdbcDriver COM.cloudscape.tools.cview java -Djdbc.drivers=COM.cloudscape.core.RmiJdbcDriver COM.cloudscape.tools.ij Client JDKRmiJdbc client applications can use JDK of 1.1 or 1.2. Database Connection URL for RmiJdbcA Cloudscape client to RmiJdbc uses the following database connection URL: jdbc:cloudscape:rmi: //hostname:portnum/ (All of this is one string; the new lines above just make the URL readable.) NOTE: If you are using the Secure Socket Layer (SSL), there is a special extended URL. See Chapter 8, "SSL Security in Cloudconnector", for details.
Here are some example Cloudscape client database connection URLs:
NOTE: Client applications generally should not use the ;shutdown=true form of the database connection URL in client/server environments. The system administrator should use the provided utility to shut down a server. For a simple example of a an application that connects to RmiJdbc server as a client, see the program CloudscapeSimpleApp in the demo/programs/simple directory. Using the Cloudscape Tools with RmiJdbcThe Cloudscape tools ij and Cloudview work in both embedded mode and client/server mode. To access RmiJdbc server using these tools, simply specify the client driver and client database connection URL for the client/server environment (see JDBC Driver and Database Connection URL for an RmiJdbc Client) where appropriate. The book Cloudscape Tools and Utilities Guide provides numerous examples of how to do this. |
|
![]() Cloudscape Version 3.6 For information about Cloudscape technical support, go to: www.cloudscape.com/support/.Copyright © 1998, 1999, 2000 Informix Software, Inc. All rights reserved. |