method access on client side

Hi,

I am new to rmi stuff. I have a basic design and implementation question...

My rmi server interface has two methods, say method1 and method2.

On client (GUI) side, i have four classes. One class has a main method where i am doing lookup for rmiserver and establishing connection. I am also accessing method1 here. What is the best way to access method2 in other 3 classes?

Thanks in advance for responses!!!

[442 byte] By [Neeru_Punia] at [2007-10-2 4:45:57]
# 1

A typical way to structure this stuff - certainly not the only way:

o Main server class identifies the user and initial user request.

o Based on user request, main class retruns an instance of the other class(es).

o Other classes subclass UnicastRemoteObject, so any methods exposed to the client are executed remotely.

bschauwejavaa at 2007-7-16 0:50:50 > top of Java-index,Core,Core APIs...