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

To what value is a variable of the string type automatically initialized?

620


What is the difference between a static and a non-static inner class?

602


the same information whether it will connect to the database or it will be used previous information?

581


How substring() method of string class create memory leaks?

560


Why use a datasource when you can directly specify a connection details?

540






Which characters may be used as the second character of an identifier, but not as the first character of an identifier?

556


AS a developer will u create a data source in connection pool? If so how will u do that, how to access the object from connection pool using IRAD tool?

1654


What are the purpose of introspection?

689


What is the argument type of a programs main() method?

569


why static class in java

1284


What is scalable, portability in the view of J2EE?

1881


What is TL and its use?

1999


Write a program to show synchronization?

700


Java is fully object oriented languages or not?

552


What class is used to create Server side object ?

1680