Creating an EJB project

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

If you want to learn more about creating EJB projects, consult the EJB Project documentation.
.
  1. Once you select EJB Project on the New Source Project Creation page of the J2C wizard, 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 page should appear 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.
  2. 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.
  3. Click Show Advanced.
  4. In the EJB version list, select the EJB specification version to which you want your EJB project to adhere.
    1. If you plan on using EJB 2.1 enterprise beans, you must specify an EJB 2.1 project. You can add EJB 1.1 enterprise beans to EJB 2.x projects. An EJB 2.1 project must exist in a J2EE 1.4 enterprise application project. An EJB 2.0 project requires a minimum level of J2EE 1.3 for its enterprise application project.
  5. In the Target server list, select the application server that you want to target for your development. This selection affects the compilation and runtime settings by modifying the class path entries for the project. Specify whether you want to add the
    Note: If you type a new EAR project name, the EAR project will be created in the default location with the lowest compatible J2EE 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.
  6. Optional: Select the Create an EJB Client JAR Project to hold the client interfaces and classes check box 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 will be added to the enterprise application as a project utility JAR file.
  7. Optional: If you are creating an EJB Client JAR project, click Next to specify the client JAR project options.
  8. If you want to add annotations to your Java source code, select Add support for annotated Java classes.
  9. If you want to create a stateless session bean, select Create a default stateless session bean.
  10. If you selected Configure Resource Adapter Deployment on the Deployment Information page, click Next to go specify the RAR settings. page.
  11. If you did not select Configure Resource Adapter Deployment on the Deployment Information page, click Finish.
.
This will take you to the J2C Java Bean Output Properties page.
Terms of use | Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.