< Previous | Next >

Lesson 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: Select a resource adapter.
In this lesson, you
  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 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.
  2. Click the New button beside the Project Name field to create the new project
  3. In the New Source Project Creation page, select Web project, and click Next.
  4. In the New Dynamic Web Project page, ensure that the following values are selected, and click Finish:
    1. Project name: IMSPhoneBook
    2. Contents: accept default
    3. Target Runtime : WebSphere® Application Server v7.0
    4. Dynamic Web Module Version: 2.5
    5. Configuration: accept default
    6. Add project to an EAR: checked
    7. EAR Project name: IMSPhoneBookEAR
  5. A dialog box appears asking if you would like to switch to the Dynamic Web perspective. Click Yes.
  6. 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.
    5. Clear Save session as ant script .
  7. Click Finish.
< Previous | Next >

Feedback