Show TOC

Creating EJB Projects in the Developer StudioLocate this document in the navigation structure


Before you create an enterprise bean, you need an EJB project to which you can assign it. The EJB project also contains the deployment descriptors that are to be included in the EJB JAR file.


  1. Choose the New pushbutton.
  2. Select Start of the navigation path EJB Next navigation step EJB Project End of the navigation path. Choose Next .
  3. Enter a name for your new EJB project in the Project name field.
  4. If you want to specify the project facets to be added to your EJB project, choose Modify in the Configuration section, then select the facets you want to add, and choose OK .

    You can also modify the project facets after you have created the project. You can reach them by choosing Start of the navigation path Properties Next navigation step Project Facets End of the navigation path in the context menu of the project.

  5. If you want to add your project to an Enterprise Application (EAR) project, select the Add project to an EAR checkbox and:
    • Enter a name for your EAR project in the EAR project name field.

    • Select an existing EAR project from the dropdown list.

    • Choose New to open the new EAR project wizard. Use this option if you want to fully configure the new EAR project.

      For more information about creating and configuring EAR projects, see Creating Enterprise Application Projects .

  6. Choose Next , then choose Next again.
  7. If you want to store the EJB client interfaces and classes in a separate module, select the relevant checkbox and specify the settings in the EJB Client JAR area.

    Otherwise, specify if you want the ejb-jar.xml deployment descriptor to be generated.

  8. (Optional) If you have enabled the Java Persistence facet, and if you want to configure it immediately, choose Next .

    For more information about configuring the Java Persistence facet, see Creating JPA Projects in the Developer Studio .

  9. Choose Finish .


The project appears in the Project Explorer . It has an ejbModule folder and the SAP-specific deployment descriptor ejb-j2ee-engine.xml .

You can now add enterprise beans and helper components to the project.