Win a copy of AWS Security this week in the Cloud/Virtualization 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 ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

"network mode" and RMI

 
Ranch Hand
Posts: 360
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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 ?
Thanks
 
Greenhorn
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
Abhijeet
 
It's never done THAT before. Explain it to me tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic