Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

createRegistry()

 
Alex Gregory
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, i just wanna make sure we're allowed to use LocateRegistry.createRegistry(int port) in our server, because this forces the registry to be created on localhost by default, but what if the grader wishes to create the registry on some other host besides localhost? Or can we assume that he is okay with starting on his choice port on localhost.
 
Robin Underwood
Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you create the registry in the server, the registry will be on the same machine as the server. It can be on a different machine than the client.
 
Mike Piotrowski
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Alex,
hi, i just wanna make sure we're allowed to use LocateRegistry.createRegistry(int port) in our server

Thats what I used in my launch the RMIRegistry and i passed with a 51 out of 53 for my server. Also agree with what Robin said.
Mike
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic