Distinct® ONC RPC/XDR Toolkit for JavaTM

Programming Guide  Class Hierarchy  Packages  Index


Overview

The Distinct ONC RPC/XDR Toolkit for Java enables you to write standard ONC RPC clients and servers in pure JavaTM. For help on how to create a client or server application in Java using this toolkit see the Programming Guide. To locate the reference portions of this document click on the relevant links below. This overview includes important installation information as well as release notes.  If you are not yet familiar with this product please take a moment to read this before proceeding.

The Distinct ONC RPC/XDR Toolkit for Java consists of the following components.

Release Notes

Installation

To install the Distinct ONC RPC/XDR Toolkit for Java, simply copy all files in this directory along with all files in all subdirectories to your local hard disk. Make sure that the same directory structure is created in the destination directory. All you need to do to start using the Distinct RPC for Java classes is to add the parent directory of the "distinct" directory (which in turn contains the "rpc" directory) to the CLASSPATH of the Java compiler.
If you are using the Distinct RPC for Java classes to develop an applet which will reside on the server, you should install the Distinct RPC for Java classes in the "distinct/rpc" (UNIX) or "distinct\rpc" (PC) directory below the directory which contains the applet on the server.
All of the online documentation is in HTML format and can be accessed either directly on the distribution CD or on the local hard disk. This document contains links to all other parts of the online documentation which includes a programming guide, a class hierarchy, a class reference and an index.

Browser Security

By default all Java-enabled browsers do not allow network connections to hosts other than the one an applet was loaded from. In order to connect your applet to arbitrary RPC servers (or to run an RPC server inside a browser), additional steps are required to get around this restriction. Unfortunately both methods are currently browser specific. Please check your browser manual for further information or take a look at the security features of Netscape Communicator, HotJavaTM, Microsoft Internet Explorer 4.0. Especially look for the terms "applet security", "signed code" (JAR files, CAB files), and "certificates".

Firewalls

Most RPC applications are designed for Intranets, and although RPC can be made to run over the Internet, the original specifications were not really designed for this. On the Internet connections over arbitrary ports (like those established by the RPC protocol) are often blocked by firewalls. Please ask your firewall administrator for the details of your network security.

Distinct ONC RPC/XDR for Java allows you to build servers and clients with well known (fixed) server ports. Depending on the configuration of your firewall this might already help to access certain servers from the Internet. Distinct ONC RPC/XDR for Java also comes with a powerful mechanism that wraps RPC requests completely with standard HTTP transactions. The server side CGI script (RPCGw) together with an RPC protocol client (ClientHTTP) allow transparent tunneling of the RPC protocol using HTTP. This mechanism allows the execution of arbitrary RPCs on the Internet where firewalls are blocking all protocols, such as RPC, that do not use fixed ports. It also allows you to call RPC servers, from a Java applet, that are not located on the same host as the web server but are elsewhere in your LAN. With this feature you can easily separate the web server from other application or database servers.



© 1997 - 1999 by Distinct Corporation. Last Modified: February 16, 1999. Legal Notices.