INFORMIX
Informix JDBC Driver Programmer's Guide
Chapter 2: Programming with Informix JDBC Driver
Contents Index

Informix JDBC Driver and Remote Method Invocation (RMI)

Informix JDBC Driver, like all JDBC drivers by definition, creates a direct connection to a database. Java applets, however, are commonly used on Web pages over the Internet, in which direct connections to a database cannot be made. Firewalls and distributed databases also disallow direct connections.

Remote Method Invocation (RMI) allows you to create distributed Java-to-Java applications, in which methods of remote Java objects can be invoked from different hosts. Using RMI with JDBC solves the problem of not being able to create direct database connections over the Internet and across firewalls.

To use Informix JDBC Driver with RMI you must implement your own JDBC methods. Typically you should implement at least the methods that open and close connections to a remote database.

A detailed example that shows how to implement remote methods to open and close connections and send and receive database queries is provided in the following Informix JDBC Driver example directory:

UNIX

Windows

where JDBCLOCATION is the directory where you installed Informix JDBC Driver.

You can also use public-domain software, such as RmiJdbc, that provides remote implementations of all the java.sql.* interfaces.

For more detailed information on RMI, refer to the following Web site:




Informix JDBC Driver Programmer's Guide, Version 1.22
Copyright © 1998, Informix Software, Inc. All rights reserved.