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
How to determine SGA site?
Where we can write Rmi registry in the code, without having to write it at the command prompt?
How to deploy Jar, War files in J2EE?
Which javutil classes and interfaces support event handling?
What is the form of storage space in java?
What is the difference between static and non-static with examples?
Can I map more than one table in a cmp?
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!
What is aop(assepct oriented programing)?
Do you think that java should have had pointers?
What is the relationship between an event-listener interface and an event-adapter class?
What are the steps to write p-to-p model application?
How would you detect a keypress in a jcombobox?
What is the purpose of the notifyall() method?
Explain the advantages and disadvantages of detached objects.