Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

"network mode" and RMI

Ranch Hand
Posts: 360
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm planning to use RMI for communication between Client and Server. In RMI we have to use Naming.lookup method to get object handle from the Object Registry. Naming.lookup requires machine name if remote object resides on different m/c. Do we need to assume that the examiner will test the application on a single machine for "network mode" and omit the name of the machine in Naming.lookup method ?
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Dilip,
In my opinion...the specs clearly state that networking is to be bypassed and I interpret it as NO LOOKUP. You may instantiate the server object directly in the same jvm OR create a new class which acts as an adapter and calls data's methods directly and implements the same interface as the server. This will achieve the effect that you're looking for. Just my opinion though.
I hope this helps.
With warm regards
Normally trees don't drive trucks. Does this tiny ad have a license?
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic