4.4.2 Creating an EJB project

To create an EJB project:

  1. From the Eclipse menu bar, choose File, New, and then Other.
    The New dialog box appears.
  2. In the New dialog box, choose EJB, EJB project, and then click the Next button.
    The New EJB Project dialog box appears.

    [Figure]

  3. Specify the following items on the EJB project page.
    Item nameExplanation
    Project name#Specify the project name of an EJB project to be created.
    Target runtimeSpecify Cosminexus J2EE server runtime.
    EJB module versionSpecify 3.1.
    ConfigurationSpecify the project configuration.
    #
    You can only use single-byte alphanumeric characters and underscores (_).
    Specify the following items as and when required:

    Item nameExplanation
    Use default locationSpecify whether the default location is to be used for creating project root.
    LocationIf Use default location is not checked, specify the path of any location. You can also specify from the Folder Reference dialog box displayed by clicking the Browse button.
    Add a project to an EARSpecify whether an EJB project to be created is to be added to an EAR project.
    EAR project nameWhen you check Add project to an EAR, specify an EAR project to be added. You can also specify from the New EAR Application Project dialog box displayed by clicking the New Project button.
    Add a project to a working setsSpecify whether the project is to be added to working set.
    Working setsWhen you check Add project to working sets, specify the working set to be added. You can also specify from the Select Working Set dialog box displayed by clicking the Select button.
  4. Click the Next button.
    The Java page then appears.
  5. Specify the Java build-related information and then click the Next button.
    The EJB Module page appears.
  6. Configure the EJB module settings, and then click the Finish button.

The created EJB project appears in the Project Explorer view. The following J2EE libraries are added in the created EJB project: