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
What is re-entrant. Is session beans reentrant. Is entity beans reentrant?
difference between ejb,struts,hibernate,spring and jsp
What is message driven beam?
What is the relationship between local interfaces and container-managed relationships?
What is the difference between the session.get() method and the session.load() method?
which type of objects reference will be given to client?
What if the static modifier is removed from the signature of the main method?
How database connectivity in XML is achieved?
what is a non-repeatable read?
Do you think that java should have had pointers?
What is the relationship between an event-listener interface and an event-adapter class?
Have you used threads in Servelet?
Difference between DurableSubscription and non- DurableSubscription?
What are the steps to write p-to-p model application?
Can I run seam with jdk 1.4 and earlier?