8.8.3 ServletContextAttributeListener
This interface defines three methods, added, removed and replaced. These methods are to be used when attributes have been added, removed, and replaced. A ServletcontextAttributeEvent is passed to these three methods. From this object you can get the name and value of the attribute that has been added, updated or removed.
ibm.com/redbooks