< Previous | Next >

Lesson 1.2: Set up a Web project and Java interface and implementations

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
  1. 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 put it in. In the New J2C Java Bean page, type the value IMSPhoneBook in the Project Name field.
  2. Click the New button beside the Project Name field to create the new project
  3. Now you will create a dynamic Web project. In the New Source Project Creation page, select Web project, and click Next.
  4. In the New Dynamic Web Project page, click Show Advanced.
  5. Ensure that the following values are selected:
    1. Project name: IMSPhoneBook
    2. Project contents: accept default
    3. Target runtime : WebSphere® Application Server v6.1
    4. Configurations: accept default
    5. Add project to an EAR: checked
    6. EAR Project name: IMSPhoneBookEAR
  6. Click Finish.
  7. A dialog box may appear asking if you would like to switch to the Dynamic Web perspective. Click Yes.
  8. On the J2C Java Bean Output Properties page:
    1. In the Package Name field, click Browse and select the IMSPhoneBook project. Click OK.
    2. Type sample.ims in the Package Name field.
    3. Type PhoneBook in the Interface Name field.
    4. Type PhoneBookImpl in the Implementation Name field.
  9. Click Finish.