Skip to main content

Posts

Showing posts with the label RMI

RMI Example

Server Side program import  java.rmi. * ; import  java.rmi.server. * ; interface  RMI_Intf  extends   Remote {      public   int   add ( int  a, int  b )   throws   RemoteException ; } class  RMI_Server  extends   UnicastRemoteObject   implements  RMI_Intf  {      RMI_Server () throws   RemoteException      {      }      public   int   add ( int  a, int  b ) throws   RemoteException      {          System .out. println ( "Press To Start" ) ;          try { System .in. read () ; } catch ( Exception  e ){}         System .out. println ( "Client passed values " + a + " and " + b ) ;   ...

RMI in JDK 1.5.x

    in jdk 5.0 runs without creating stub using rmic

RMI

RMI

Java technologies allow building the distributed applications.  Application that has been distributed on different machines in the form of executable pieces is called distributed. All the executable pieces work as one application that is transparent for external user. It means external user does not fell that application on which he/she is working is not on the system on which he/she is working. Introduction Java provides a feature that enables developer to develop the distributed application in the form of objects those are distributed on the different machines and this is accomplished by the RMI. RMI stands for Remote Method Invocation. RMI allows invoking the method of an object that is located on the remote JVM in the current object of program. That RMI provides the facility of object-to object communication. Object may be located on the different machine or in the single machine but the JVM in which they are executing will deferent. There is remote interface that contains d...