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
Can you control when passivation occurs?
What is difference between object state and behavior?
what is Activation Instantinator?
What value does read() return when it has reached the end of a file?
Which containers use a border layout as their default layout?
What is the relationship between local interfaces and container-managed relationships?
What is the difference between the font and fontmetrics classes?
Are enterprise beans allowed to use thread.sleep()?
Explain the advantages and disadvantages of detached objects.
What is the difference between ear, jar and war file?
What are the services in RMI ?
Explain how will the struts know which action class to call when you submit a form?
Why does the tag url-encode javascript and mailto links?
How to implement RMI in Java?
What is the infobus?