Java Programming/Networking

Prior to modern networking solutions there existed workstations that were connected to a massive Mainframe computer that was solely responsible for memory management, processes and almost everything. The workstations would just render the information sent in from the Mainframe console.

But in the mid 90's, with the prices of Unix servers dropping, the trend was moving away from Mainframe computing toward Client-Server computing. This would enable rich Clients to be developed on workstations while they would communicate with a centralized server, serving computers connected to it, to either communicate with other workstations also connected to it or it would request for database access or business logic stored on the server itself. The workstations were called Clients.

This form of computing gave rise to the notion of the Front-end and Back-end programming. In it's hey-day, Java came up with different ways of making networking between computers possible. In this chapter, we would be looking at some of these ways. Listed below are two of the frameworks that Java uses to enable network programming. We would be exploring both of these in this chapter.

{| width="100%" cellpadding="8" cellspacing="0"

Client-Server programming

 * 1)  Networking basics
 * 2)  Creating a simple server
 * 3)  Listening for clients
 * 4)  Creating a client to interact with the server
 * 5)  Sending information over a network
 * 6)  Building complex carriage routines
 * valign="top"|

Remote Method Invocation (RMI)

 * 1)  Basics of Remote Method Invocation
 * 2)  Of stubs and proxies
 * }