RMI Question:

When is AlreadyBoundException thrown and by which method?

Tweet Share WhatsApp

Answer:

AlreadyBoundException is thrown by bind(String name) method when a remote object is already registered with the registry with the same name.
Note: rebind method doesn't throw AlreadyBoundException because it replaces the existing binding with same name.

Download RMI PDF Read All 21 RMI Questions
Previous QuestionNext Question
What is the difference between using bind() and rebind() methods of Naming Class?How to get all the registered objects in a rmiregistry?