Hi,
Here's a small example according to what i understood
Eg for HttpSessionBindingListener
eg for class implementing HttpSessionAttributeListener
Eg of the servlet where these listeners will be
invoked
In the above example, myListener should be configured in web.xml
Hope this helps,