Java Reference
In-Depth Information
Note Since the advantages that Activatable bestows are beyond the requirements of our project, we
have opted to extend the simpler, more straightforward UnicastRemoteObject class.
The code for the remote interface is rather concise, as shown in Listing 6-7.
Listing 6-7. The DvdDatabaseRemote.java
package sampleproject.remote;
import java.rmi.Remote;
import sampleproject.db.*;
/**
* The remote interface for the GUI-Client.
* Exactly matches the DBClient interface in the db package.
*
* @author Denny DVD
* @version 2.0
*/
public interface DvdDatabaseRemote extends Remote, DBClient {
}
To understand what behavior this interface is actually defining, it's useful to examine the
DBClient class. That class diagram is shown in Figure 6-12, and the code file is shown in
Listing 6-8.
Search WWH ::




Custom Search