|
|
One beauty of RMI is the ability to pass Java objects back and forth.
This is really what makes RMI great, because our program can act over multiple
computers over a network. Without this, all we really have is a program
that passes bytes over a socket.
-
We have two options when sending parameters. Consider the implications:
-
Non-remote: we pass a copy of the parameter from one instance to another.
-
Remote: Just like our ChatImpl, we pass a stub to the client and we keep
everything updated in one place. These objects must implement the
Remote interface.
Non Remote Objects
|