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

Difference between DurableSubscription and non- DurableSubscription?

1720


What are various types of class loaders used by jvm?

502


Difference between new operator and class.forname().newinstance()?

606


What are the steps to write p-to-p model application?

1968


How to implement dphibernate to activate lazy loading in Flex with java ?thanx in advance!

2562






Can I run seam with jdk 1.4 and earlier?

563


What is message driven beam?

585


Which javutil classes and interfaces support event handling?

592


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

552


What is the difference between session and entity beans?

585


What is the relationship between local interfaces and container-managed relationships?

598


What’s jboss cache in short?

608


What are the different algorithms used for clustering?

555


Explain about thread synchronization inside a monitor?

2004


What is the immediate superclass of the applet class?

605