2.2 Implementation of Socket programming and RMI Using Stimulating
Environment [Rounak Sinha, Hemant Kumar Srivastava, Sumita Gupta]
A network basically constitute combination of nodes and the medium (way) which
helps in connecting them. The following nodes are in connection to each other due to
the reason of transmission of data, which can take place in many forms like media,
messages, function invocation and so-on. To do data transmission we basically have
two modes those are Synchronous transfer and Asynchronous transfer. In this big
world where distribution of data plays a very important role for communication in
many organisations, it becomes very essential to make use of network intelligently for
much effective transmission with less and controllable traffic. The following research
paper basically deals with two such kind of techniques which can be brought into
selection as per the need of any company. These two techniques include Socket
Programming and Remote Method Invocation which is popularly known as RMI.
Socket programming is one of the efficient and fundamental technologies brought in
use on the internet. If we talk about socket programming being implemented at
hardware level, then the communication taking place between various hosts will occur
much rapidly than it is today. In a machine, socket programming can be implemented
or executed at both hardware and software level. In the following research paper both
Socket programming and (Remote Method Invocation) RMI have been discussed and
explained in great detail and comparative analysis is done between them on the basis
of various parameters.
Remote Method Invocation is a basic way for producing and deploying various
distributed object applications in java programming language. There are two packages
known as java.rmi and java.rmi.server which contain the interfaces and classes that
basically defines the functionality of JAVA.RMI systems. It is basically a method to
call objects from remote location of a class.
The socket class contains various constructors:
1. public Socket(String host, int port) throws UnknownHostException, IOException.