Creating an EJB project

Select EJB project on the New Source Project Creation page to create a EJB project for your J2C application.

Before you begin

If you want to learn more about creating EJB projects, see EJB Project documentation.

Procedure

  1. Select EJB Project on the New Source Project Creation page of the J2C wizard, and click Next.
  2. On the New EJB Project page appears, to use an existing project, click Browse to locate and load this project into your workspace. The name you entered for your project in the New J2C Java™ Bean page appears in the Name field; ensure that it is correct. If the project name does not appear, type in your project name in the Name field.
  3. In the Name field, type a name for the EJB project. To change the default Project location, click the Browse button to select a new location.
  4. In the Target runtime field, select the version of WebSphere® Application Server that you want to deploy to. This selection affects the compilation and runtime settings by modifying the class path entries for the project.
    Note: If you type a new EAR project name, the EAR project is created in the default location with the lowest compatible Java EE version based on the version of the project being created. If you want to specify a different version or a different location for the enterprise application, you must use the New Enterprise Application Project wizard.
  5. Accept the default EJB Module version, or select a different version from the list. If you are creating J2C inbound applications, select EJB 3.0.
    Important: If you select EJB 3.0, the EJB 3.0 wizard by default creates a local interface. If you want to create a remote interface, you must manually create it by adding the @Remote(class= interface.java) annotation to the J2C bean.
  6. In the Configuration field, accept the default configuration, or click Modify to change the project facets for your project.
  7. If you want to add the EJB project to your EAR project, select Add project to an EAR.
  8. Choose the EAR to add the EJB module to, or type the name of a new EAR in the EAR Project Name field, and click Next.
  9. On the EJB Module page, in the Source folder field, accept the default for the source folder, ejbModule, or type a different source folder name for your EJB project, and click Next.
  10. On the Configure EJB module settings page,
    1. Click the Create an EJB Client JAR module to hold the client interfaces and classes if you want the client interface classes for your enterprise beans to be kept in a separate EJB client JAR file. This EJB client JAR file is added to the enterprise application as a project utility JAR file.
    2. In the Name field, accept the default name of the Client JAR module, or type a different name.
    3. In the Client JAR URI field, accept the default name of the Client JAR file, or type a different name.
  11. Click Finish.

What to do next

This takes you to the J2C Java Bean Output Properties page.

Feedback