Chapter 15: Client-Server Programming in Java

Note: this page applies to the now-obsolete first edition of the book. For the second edition, please see http://www.corewebprogramming.com.


This chapter of Core Web Programming (pages 794-863) covers four options for network programming in Java: raw sockets (both clients and servers), the URL class, RMI, and JDBC.

1.02 Version: This version uses Java 1.1 exclusively. However, for backward compatibility with Netscape 2, Netscape 3, the standard (unpatched) version of Netscape 4.01-4.05, and Internet Explorer 3, a 1.02 version is available separately.

Downloading files: On Windows 95/NT and Unix, click on the links with the right mouse button to save the referenced HTML document to a new location. On any platform, you can also click on the links with the SHIFT key held down. On Netscape, this lets you save the HTML source for the referenced file to a new location. In Internet Explorer, this puts the referenced file in a separate browser window (without frames), where you can then save it.


Contents


Socket-Related Classes in this Chapter


RMI-Related Classes in this Chapter

There are two examples here. In the first, a very simple RMI application is set up that simply sends a string. In the second, RMI is used to create a numeric integration server (assumedly for less floating-point-capable clients).

These require Java 1.1 or an RMI compatibility package for 1.02.


JDBC-Related Classes in this Chapter

These require all of the following:
  1. Java 1.1 or a JDBC compatibility package for 1.02.
  2. The FastForward JDBC driver from Connect Software. You have to obtain and install it for this code to work, or get a different driver and adapt the connection code accordingly.
  3. A compatible database to connect to. The database used in the examples is not available on the WWW.

Classes


URLs in this Chapter