RMI Question:
When is AlreadyBoundException thrown and by which method?
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.
Note: rebind method doesn't throw AlreadyBoundException because it replaces the existing binding with same name.
Previous Question | Next Question |
What is the difference between using bind() and rebind() methods of Naming Class? | How to get all the registered objects in a rmiregistry? |