Create interfaces though which your users can access the underlying functionality.
...
1. Create a Dynamic Web Project.
More information: Creating Dynamic Web Projects.
2. Using the corresponding wizards, create the necessary Web components such as servlets, filters, listeners and so on.
More information:
○ Creating Listeners and Filters
3. In the Java editor, implement the Java source code.
More information:
○ Using Annotations in Web Applications
○ Developing JavaServer Faces (JSF) Web Applications
4. Optionally, edit the web-j2ee-engine.xml deployment descriptor.
More information: Editing the web-j2ee-engine.xml.
5. If you have not done so initially, add the Dynamic Web Project to an Enterprise Application Project.
More information:
○ Creating Enterprise Application Projects
○ Adding Modules to the Enterprise Application.