< Previous | Next >

Lesson 2: Set up a web project and Java Interface and Implementations

Lesson 2 steps you through the creation of 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 Java bean, you need to create a project to put it in. In the New J2C Bean page, type the value MultiSegOutput in the Project Name field.
  2. Click the New button beside the Project Name field to create the new project
  3. Now you create a web project. On the New Source Project Creation page, select Web project, and click Next.
  4. On the Web Project page,
    1. In the Project name field, type MultiSegOutput.
    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 MultiSegOutputEAR appears.
    5. Accept the other defaults and click Finish. If asked to Open Associated Perspective?, click Yes. Click Finish.
  5. On the J2C Java Bean Output Properties page:
    1. In the Package name field, click Browse and select the MultiSegOutput project. Click OK.
    2. Type sample.ims in the Package name field.
    3. Type MSO in the Interface name field.
    4. Type MSOImpl in the Implementation name field.
    5. Clear Save session as ant script .
  6. Click Finish.
< Previous | Next >

Feedback