September 2002
Intermediate to advanced
608 pages
14h 20m
English
The best way to gain an understanding of RMI is to write some code. Let's say that for some reason, we'd like a client program to be able to access a Standings object residing on a remote system, but without the use of servlets. The first requirement of RMI is that there must be a remote interface that enumerates the methods that are remotely callable.
Now, because we separated interface from implementation in our application way back in Chapter 2, you might think we would be well set for this. But RMI places some unique requirements on the remote interface. First, the interface itself must extend java.rmi.Remote; then, each method within the interface must throw java.rmi.RemoteException
Read now
Unlock full access