Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

"network mode" and RMI

 
Dilip kumar
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
 
Abhijeet Premkumar
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic