You create an EJB project and add it to an enterprise application project. At a later stage, you will create a session EJB in the EJB project to implement the business logic of the Web service.
1. Open the Java EE perspective, choose Window → Open Perspective → Other → Java EE, and then choose File → New → Project.
The New Project window opens.
2. In the list of wizards, choose EJB → EJB Project, and then choose Next.
3. In the Project name field, enter HelloWorldEJB.
4. Choose Add project to an EAR, and then choose New.
The EAR Application Project wizard opens.
5. In the Project name field of the wizard, enter HelloWorldEJBEAR, and then choose Finish.
6. In the EJB Project wizard, choose Next twice.
7. On the EJB Module step, deselect the Create an EJB Client JAR module to hold the client interfaces and classes option.
8. Choose Finish.
The HelloWorldEJB and the HelloWorldEJBEAR projects appear in the Project Explorer.
Creating the Enterprise Java Bean