118 CCF-to-J2C Architecture Migration
7.3.1 Preparing the J2CA artifacts
Importing the resource adapter
We needed to import the CICS resource adapter prior the creation of J2CA
artifacts. We did it the same way as in the automated migration section: 7.2.2,
“Preparing the migration environment” on page 101.
Creating the Service Project
1. We created the new Service Project using File → New → Service Project.
2. Then we created the folder for the COBOL records and imported all
necessary CCP files by using File
→ Import, choosing the File System as a
source and selecting the appropriate folder.
Figure 7-27 Importing the COBOL sources
Chapter 7. Migrating a real-life application 119
Creating the Services
Each combination of input and output records requires the creation of a separate
Service. For correspondence with the existing code, we created the same folder
structure as we had for CCF artifacts.
1. We selected File
→ New → Service built from.
2. Then we chose CICS ECI as the Service source (Figure 7-28).
Figure 7-28 Creating the Service for the CICS ECI adapter
120 CCF-to-J2C Architecture Migration
3. All connection properties will be located on the server, so we defined the JNDI
name for the Connection Factory resource.
Figure 7-29 Specifying Service properties
Chapter 7. Migrating a real-life application 121
4. We entered the name of the command and clicked Finish.
Figure 7-30 Creating the Service binding
Note: The JNDI lookup name in this dialog is a local resource binding
lookup, being looked up in the java:comp/env namespace if deployed into a
Web container. So at this point it was necessary to define what the JNDI
local name will be to avoid changing this for all of the defined services
(which we had to do).
122 CCF-to-J2C Architecture Migration
5. The corresponding Service was created and the appropriate Bindings WSDL
file was opened automatically by WebSphere Studio.
After the creation of the Service, we needed to create the binding content. We
chose the Binding tab, right-clicked, and selected Generate Binding
Content.
Figure 7-31 Generating binding content
Get CCF-to-J2C Architecture Migration now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.