File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Distributed Java and the fly likes What is the answer rebind() and lookup() sould change? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "What is the answer rebind() and lookup() sould change?" Watch "What is the answer rebind() and lookup() sould change?" New topic
Author

What is the answer rebind() and lookup() sould change?

Arun Maalik
Ranch Hand

Joined: Oct 25, 2005
Posts: 216
Hey rancha i have a question this question i get many time but i confused so kindly ansered the question as follow

The RMI registry is rning on some port other than DEFAULT port what shoud be done to execute an RMI application?

1)Canging the port will not have any effect on the application.
2)The rmiregistry shoude command should be given for the new port.
3)The rebind() and lookup() method should be change?
4)The RMI registry can't use port other than default.

So which one is the answer of the above question i think 1

Regard

Arun
Nitesh Kant
Bartender

Joined: Feb 25, 2007
Posts: 1638

For running the RMI registry you obviously have to specify the port other than default.
For looking up any objects from the registry, you first have to catch hold of the registry using LocateRegistry.getRegistry(). In this method you have to specify the port no. The lookup and bind method calls does not change


apigee, a better way to API!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What is the answer rebind() and lookup() sould change?
 
Similar Threads
NX: RMI check available port or host number
Server UI
RMI Server becoming unreferenced
client - server communication between two machines
Naming.lookup arguments