This lesson leads you through setting up a web project
and Java™ Interface and Implementations.
In this lesson, you
- Create a J2C 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 bean, you need to create a project to put it in. In
the New J2C Bean page, type the value IMSPhoneBook in the Project Name field.
- Click the New button 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, ensure that the following
values are selected, and click Finish:
- Project name: IMSPhoneBook
- Contents: accept default
- Target Runtime : WebSphere® Application Server v7.0
- Dynamic Web Module Version: 2.5
- Configuration: accept default
- Add project to an EAR: checked
- EAR Project name: IMSPhoneBookEAR
- A dialog box appears 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 IMSPhoneBook project. Click OK.
- Type sample.ims in the Package name field.
- Type PhoneBook in the Interface name field.
- Type PhoneBookImpl in the Implementation name field.
- Clear Save session as ant script .
- Click Finish.