This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Arun Maalik
Ranch Hand
Posts: 216
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1638
IntelliJ IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic