Posts

Showing posts with the label Remote Method Invocation

Let's Say Hello To JAVA RMI

Image
What is RMI? Java  Remote Method Invocation  (RMI) is a mechanism which allows a java program to invoke methods on an object running in another JVM. The RMI is used to create distributed applications in Java. That means remote communication between applications can be done using Java RMI. Let's keep RMI aside for a while and consider the following java classes. class  MyCal{    int  n ,  m ;     public int  add( int  x, int  y){        return  x+y;    }     public int  sub( int  x, int  y){        return  x-y;    } } class  Main{     public static void   main(String[] args){        MyCal obj =   new   MyCal();  //line 1        int  ans = obj.add(4,8);  //line 2    } } When the line 1 of Main...