Java Programming/RMI-IIOP

RMI-IIOP (RMI over IIOP) is provided with the Java SDK. It combines Remote Method Invocation (RMI) technology with the Internet Inter-Orb Protocol (IIOP) to provide CORBA to the Java platform. Java developers do not have to provide IDL in order to provide CORBA capabilities.

The Remote Interface
The above code defines a remote interface called HowdyInterface that will define what the remote client may call on the server. All of the operations must throw a RemoteException. The interface must extend java.rmi.Remote.

The Implementation Class
The implementation class allows for the object to be ORB-initialized. It also implements the remote operation to be called. The implementation could have extended, in which case the   call in the constructor would be removed. The better approach would seem to be as coded above.

The Client Class
The client code uses the name service to look up the server and make the remote invocation.