Skip to main content

Problem:

Product Version: VisiBroker for C /Java
Platform Version: ALL
JDK Version: NA
Product Component: Naming Service
 
Why are stale references not automatically removed by the naming service?

Resolution:

The process of removing a stale server reference can only be completed if an attempt is made to connect to the server. This is because the orb made use of the connection attempt from the client to the server to determine if the server is present. If no attempt is made to connect to the server after obtaining the stale server reference from the naming service, the stale server reference will never be removed by the Naming Service. Here is a typical scenario of how the stale server reference is removed:
 
1. Client resolves to a stale server reference from the Naming Service.
2. Client tries to connect to the server using stale server reference.
3. Client failed to connect to the server and subsequently tells the Naming Service about the connection failure and tries to get another server reference from the Naming Service.
4. Naming Service tries to give the client another server reference if one is available, and it will also remove the stale server reference from the database.

#Security
#NamingService
#stalereference
#VisiBroker