Explain the methods of Naming class, rebind( ) and lookup()?

Answer Posted / janet

rebind()of the Naming class(found in java.rmi) is used
to update the RMI registry on the server machine.
Naming.rebind("AddServer",AddServerImpl);
lookup() of the Naming class accepts one argument , the
rmi URL and returns a reference to an object of type
AddServerImpl.

Is This Answer Correct ?    26 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

int x=5,i=1,y=0; while(i<=5) { y=x++ + ++x; i=i+2; } System.out.println(x); System.out.println(y); System.out.println(i); How to solve this? Please explain!

1593


Why is actionform a base class rather than an interface?

772


What do you know about seam?

777


Define the remote object implementation?

2185


what is handle?

2083


Describe activation process?

2271


What is the purpose of the wait() method?

815


How to pass parameters in RMI?

1957


How are the elements of a cardlayout organized?

776


what are memory considerations of jsp compares to other web components?

6255


Explain phantom read?

1958


Write a program to show synchronization?

862


Why does the tag url-encode javascript and mailto links?

782


Brief description about local interfaces?

896


What is the purpose of the finally clause of a try-catch-finally statement?

767