Adding new EJB projects

Although it is recommended that new enterprise beans be created within the predefined WebSphereCommerceServerExtensionsData project, you may have a requirement to create additional EJB projects.

About this task

To add an EJB project to your workspace:

Procedure

  1. Select File > New > EJB Project.
  2. In the New EJB Project wizard that opens:
    1. In the Name field, enter a name for your EJB project.
    2. Click Show Advanced.
    3. From the EJB version list, select 2.1. Note that although the project is version 2.1, when you create entity beans inside this project, you should choose version 1.1.
    4. In the EAR project list, select WC.
    5. Click Finish.
  3. Within the Project Explorer view, expand EJB Modules and locate your new project.
  4. From your new project's pop-up menu, select Properties.
  5. In the Properties editor window:
    1. In the left pane, select Java Build Path.
    2. Click the Projects tab and select the WebSphereCommerceServerExtensionsData check box.
    3. Click OK to save your changes and close the Properties editor.