Java Reference
In-Depth Information
Figure 6-10.
RMI factory examples
However, the
RmiFactoryExample
creates two separate instances of the
DvdDatabase
object,
as evidenced by the two constructor output messages, for each remote invocation.
We would like to expose the public methods as remote methods so our Swing GUI can
invoke them. Figure 6-11 shows a class diagram of our remote class.
Figure 6-11.
DvdDatabaseRemote class diagram