Show TOC
Adding a Listener
Prerequisites
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
.
Procedure
In your DLP project, choose the J2EE Components tab.
Select a WAR file from the tree.
Choose J2EE Components → Add Listener. A dialog box appears.
Enter the fully qualified Java class name of the listener. This name will be used as a name for the listener.
Note
Use unique listener names in a Web archive.
Choose OK. The listener appears on the J2EE Components tab as a subnode of the Web archive.
Save your entries.