JNDI is a large subject, and some of the previous discussion has been quite brief (there is a lot more to attributes, searching, and references than has been shown). Today, the additional features, such as naming events and security, have been presented in a very superficial manner.
JNDI supports an event model similar to the event listeners in the Java AWT and Swing classes. However, the underlying JNDI Service Provider must also provide support for the event model for a client to register event handlers.
The javax.naming.event package supports two types of JNDI event listener (both are sub-classes of NamingListener):
NamespaceChangeListener reports on changes to the namespace objects that are added, removed, ...