posted 22 years ago
Your application will consist of two-RMI Servers and two-RMI clients.
its simple
as you do in a simple RMI client-server application
in this case
both client & server will extend UnicastRemoteObject
i.e both will implement some Remote methods hence both will act like RMI Servers for clients.
and both will become clients for each other by invoking Remote Methods on each other.
so both are clients as well as servers.
its like C is a client , B & A are a server
C --------------------->B---------------------->A
here B is Server for C and Client for A
in your case A is C itself.
so write 2 RMI server programs.
& implement client code in both of them.