Exercise 1.2: Setting up the Web Project and Java Interface and Implementations
Before you begin, you must complete Exercise 1.1: Using the J2C Java bean Wizard to select the Resource Adapter.
Exercise 1.2 steps you through the creation of a J2C application. In this exercise you will
- Create a J2C Java 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 Java bean, you need to create a project to put it in.
- In the New J2C Java Bean page, type the value Taderc25Sample 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, click Show Advanced.
- Ensure that the following values are selected:
- Name: Taderc25Sample
- Project location: accept default
- Servlet version: 2.4
- Target server: WebSphere Application Server v6.0
- EAR Project: Taderc25SampleEAR
- Context Root: Taderc25Sample
- Click Finish.
- A dialog box may appear asking if you would like to switch to the Dynamic Web perspective. Click Yes.
- In the New J2C Java Bean page, ensure that the following values appear:
- In the Package name field, type sample.cics
- In the Interface name field, type CustomerInfoMO.
- In the Implementation name field, type CustomerInfoMOImpl.
- Click Next.
Now you are ready to begin Exercise 1.3: Creating the Java Method.