|
Distributed object-based applications can be easily developed using Java Remote Method Invocation (RMI). The simplicity of RMI, however, comes at the expense of network communication overhead. Low-level sockets can be used to develop client/server systems, but since most Java I/O classes are not object friendly, how can you transport full-blown objects over sockets? Object serialization is the mechanism that allows you to read/write full-blown objects to byte streams. This tutorial will teach you what sockets are and how to use them in your Java? programs. Through several hands-on examples, ranging from single client/sever communication to a pooled collection of clients accessing the server, you will learn how to use sockets to handle typical scenarios that crop up in the real world. I need assistance in writing a new lava Socket that uses Virgenere. I'm not sure wether to rewrite the whole Socket. class or simply redo the Socket Implementation that actually does the sending and receiving. Java is a powerful, object-oriented language that supports much functionality, including client/server communication through socket programming, windows-based programming, console programming, database connectivity, image, and sound programming. Java is mainly designed for Internet programming and to create small applications that can be embedded inside an HTML page, known as Applets. Here is a small socket application developed in Java. This application has a simple WebServer, Proxy Server and a Cascading Proxy Server. Simplified support for the development of network software is one of Java's strengths. That support manifests itself through Java's Network API, a collection of classes and interfaces located in packages java.net and javax.net. While writing my book Java 2 by Example, Second Edition (Que, 2000), I intended to include a chapter on the Network API. Unfortunately, I ran out of time and that chapter did not make it into my book. Because the thought of not including a chapter on the Network API bothered me, I decided to create a trilogy of articles that explores that API. The article that you are currently reading and its companion articles form that trilogy and serve as my book's final chapter. |
| w__ww_.j_a_va2__s__.c___o___m_ | Contact Us |
| Copyright 2009 - 12 Demo Source and Support. All rights reserved. |
| All other trademarks are property of their respective owners. |