Select EJB project on the New Source Project Creation page to create
a new EJB project for your J2C application.
.
- 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.
- 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.
- Click Show Advanced.
- In the EJB version list, select the EJB
specification version to which you want your EJB project to adhere.
- 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.
- 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.
- 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.
- Optional: If you are creating an EJB Client JAR project,
click Next to specify the client JAR project options.
- If you want to add annotations to your Java source code, select Add
support for annotated Java classes.
- If you want to create a stateless session bean, select Create
a default stateless session bean.
- If you selected Configure Resource Adapter Deployment on
the Deployment Information page, click Next to go specify the RAR settings. page.
- If you did not select Configure Resource Adapter Deployment on
the Deployment Information page, click Finish.
.