hi all,
Well I had been developing RMI applications for quite long...but still there are something which do not understand.....
Well when we start the RMI registry and register our Remote object in it, the RMI registry opens a port at 1099 (default port) and listens for incoming request. When ever a client makes a request with a particular service name the following sequence of events occurs....
1)the registry being itself a remote object the request first obtains a stub of the registry.
2)using the stubb then the lookup method is called and RemoteStub of the Remote Object is obtained.
3)Then using the Remote Object's Stub remote method calls are made.
Now the communication between the client and server ultimately should boil down to socket communication. But where actually the port is mentioned where the Remote object's stub contacts the server.
Somebody told me that its written in the stub class file. But I decompiled it and checked. There is no mention of any port number.
Can anybody help explain of how actually the communication is occuring between the client and the server
rahul