One common operation of JNDI is nameís list retrieval of the children. E.g, Enterprise JavaBeans names could be obtained by an application to check if one of them is running or childer names list of InitialContext so that Swing JTree component could be populated. Objectís children names are listed by the help of list() method.
Javax.naming.NameClassPair objectís javax.naming.NamingEnumeration is returned
NamingEnumeration children = initialContext.list("");