This discussion considers Java's support for client/server architectures, a particularly powerful and flexible design in which a process running on one machine can respond to requests for data and/or services from a program running on a different machine. The beauty of the arrangement is that the two machines may be located anywhere in the world so long as they are connected to the Internet.The discussion will include two parts. The first will cover the basics of establishing a connection between client and server programs. In a subsequent tutorial, a more advanced design will be discussed in which each connection to a server is handled by a different thread; however, that discussion must await the discussion of threads that follows.
Topics
- Begin discussion of Java client/server architecture.
- Minimal server
- Minimal client
- Moderate server
- Moderate client
- Applet client
References
Useful references include:
- Sun's Java Development Kit (JDK)
- The API
- The API Class Hierarchy
- Source Code for JDK Packages
Assignment for Next Class
- Read Java Threads class tutorial.