Before you can add a Listener to a WAR, you must have:
· Added the Listener class file to the archive content tree of the WAR. For more information, see Managing Files and Directories.
· Set the project classpath. For more information, see Setting a Project Classpath.
1. In your DLP project, choose the J2EE Components tab.
2. Select a WAR file from the tree.
3. Choose J2EE Components → Add Listener. A dialog box appears.
4. Enter the fully qualified Java class name of the listener. This name will be used as a name for the listener.
Use unique listener names in a Web archive.
5. Choose OK. The listener appears on the J2EE Components tab as a subnode of the Web archive.
6. Save your entries.