< 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 store it in.
  2. In the New J2C Java Bean page, type the value Taderc25Sample in the Project Name field.
  3. Click New beside the Project Name field to create the new project.
  4. In the New Source Project Creation page, select Web project, and click Next.
  5. On the Web Project page,
    1. In the Project name field, type Taderc25Sample.
    2. In the Project Templates field, select Simple.
    3. In the Programming Model field, select Java EE.
    4. On the deployment page, from the list of available configuration options, click Deployment to open the Deployment configuration page.
      • In the Target runtime select WebSphere Application Developer v7 or v8 from the drop-down box.
      • Clear Add support for WebSphere bindings and extensions.
      • In the Web module version field, select 3.0
      • In the EAR membership field, click Add project to an EAR..
      • In the EAR project name field, ensure that Taderc25SampleEAR appears.
    5. Accept the other defaults and click Finish. If asked to Open Associated Perspective?, click Yes. Click Finish.
  6. On the J2C Bean Output Properties page:
    1. In the Package name field, click Browse and select the Taderc25Sample project. Click OK.
    2. Type sample.cics in the Package name field.
    3. Type CustomerInfoMO in the Interface name field.
    4. Type CustomerInfoMOImpl in the Implementation name field.
    5. Clear Save session as ant script .
  7. Click Finish.
< Previous | Next >

Feedback