• Post Reply Bookmark Topic Watch Topic
  • New Topic

How exactly the communication occurs between and RMI Client and a Server

 
Rahul Gupta
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to the RMI forum (Distributed Java).
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!