The server in the example implements a generic compute engine, which the client uses to compute the value of. Additionally, this section provides a description of a typical RMI application, composed of a server and a client, and introduces important terms. Writing an RMI Server walks through the code for the compute engine server.
An object becomes remote by implementing a remote interface. The implemented remote interface should extend the java.
Remote interface and all the methods declared in the interface should throw the exception java. RMI passes a remote stub for a remote object. The stub, which acts as proxy for the remote object, is the remote reference to the client in the client environment.
All remote method invocation is done on this object. Learn Core Java. Java Examples Java 8 Java 11 Java HTML 5 Interactive. CSS Interactive. C Language. Advanced Data Structure. Operating System. Computer Network. Computer Architecture. Android Development. Game Development. GO Language. Spring Framework. Go to Tutorials Library. Interactive Courses, where you Learn by doing.
0コメント