File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes createRegistry() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "createRegistry()" Watch "createRegistry()" New topic
Author

createRegistry()

Alex Gregory
Ranch Hand

Joined: Jun 15, 2002
Posts: 46
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

Joined: May 01, 2002
Posts: 117
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

Joined: Apr 24, 2002
Posts: 82
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: createRegistry()
 
Similar Threads
RMI Registry
LocateRegistry.getRegistry (1234);
Changing RMI port from 1099
RMI :remote exception
RMI UnmarshalException