Select EJB project on the New Source Project Creation page
to create a EJB project for your J2C application.
Procedure
- Select EJB Project on the New Source
Project Creation page of the J2C wizard, and click Next.
- 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.
- 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.
- 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.
- 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.
- In the Configuration field, accept
the default configuration, or click Modify to
change the project facets for your project.
- If you want to add the EJB project to your EAR project,
select Add project to an EAR.
- 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.
- 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.
- On the Configure EJB module settings page,
- 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.
- In the Name field, accept the
default name of the Client JAR module, or type a different name.
- In the Client JAR URI field,
accept the default name of the Client JAR file, or type a different
name.
- Click Finish.
What to do next
This takes you to the J2C Java Bean
Output Properties page.