This lesson leads you through setting up a Web project and Java™ Interface
and Implementations.
Before you begin, you must complete Lesson 1.1. In this lesson you
will
- Create a J2C Java bean
- Create a dynamic Web project
- All work done in the workbench must be associated with a project.
Projects provide an organized view of the work files and directories, optimized
with functions based on the type of project. In the workbench, all files must
reside in a project, so before you create the J2C Java bean, you need to create a project
to store it in.
- In the New J2C Java Bean page, type the value Taderc25Sample in
the Project Name field.
- Click New beside the Project
Name field to create the new project.
- In the New Source Project Creation page, select Web
project, and click Next.
- In the New Dynamic Web Project page, click Show Advanced.
- Ensure that the following values are selected:
- Project name: Taderc25Sample
- Project contents: accept default
- Target runtime : WebSphere® Application Server v6.1
- Configurations: accept default
- Add project to an EAR: checked
- EAR Project name: Taderc25SampleEAR
- Click Finish.
- A dialog box may appear asking if you would like to switch to the
Dynamic Web perspective. Click Yes.
- On the J2C Java Bean Output Properties page:
- In the Package Name field, click Browse and
select the Taderc25Sample project. Click OK.
- Type sample.ims in the Package
Name field.
- Type CustomerInfoMO in the Interface
Name field.
- Type CustomerInfoMOImpl in the Implementation
Name field.
- Leave the Save session as Ant script unchecked.
- Click Finish.