A listener receives notifications on any events related to the Web application, such as deployment/undeployment of the Web application, activation/deactivation of an HTTP session, as well as on adding, removing, and replacing attributes of the application/session.
Listeners, as a part of a Web application, are configured in the Web module deployment descriptor
To define a listener element
- Configure a new listener.
- Switch to the Text view and specify the necessary settings in the Web application deployment descriptor.