We need not configure the HttpSessionBindingListener and HttpSessionAttributeListener in the DD.
The Listerners are implemented in a seperate class. But we can implement the HttpSessionAttributeListener in the attribute class itself. For example there is a class Employee and you want to perform some action when the attribute is added or removed from the session. In this case you can implement the HttpSessionAttributeListener in the Employee class itself.
public class Employee implements HttpSessionAttributeListener {
private
String name;
// setter and getter method for name
public void attributeAdded(HttpSessionBindingEvent sbe){ }
// for attribute remove and replaced.
}