• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moving to the RMI forum (Distributed Java).
reply
    Bookmark Topic Watch Topic
  • New Topic