Rmi-Iiop and Jndi: Celsina Bignoli
Rmi-Iiop and Jndi: Celsina Bignoli
Java RMI-IIOP
Java Remote Method Invocation over Internet Inter-ORB Protocol Mechanism that allows objects to communicate across a network Special version of RMI, compliant with CORBA
Remote Interface
separation between
Interface: exposes to the client what methods can be invoked on an object and what are their parameters Implementation: the programming logic provided by the object
Location transparency
RMI-IIOP masks weather the object you are invoking is local or remote Uses a stub to accept method calls locally and delegate those calls to the actual object implementation which might reside across the network Uses a skeleton on the remote host to receive calls over the network and delegate the calls to the object implementation. Stubs and skeletons are automatically generated by a tool, called rmic, provided as part of the Java RMI-IIOP implementation
Stub
Skeleton
Network
Object Serialization
Conversion of a Java object into a bit-blob representation Must implement the java.lang.Serializable interface (marker interface, no methods) Rules for member variables
All primitive types are serializable and will be serialized unless marked as transient Objects marked as transient will not be serialized Objects not marked as transient must be Serializable