z/OS® Connect Enterprise Edition is a separately
orderable product; it is not supplied as part of CICS® TS.
First, you must install the runtime component of z/OS Connect Enterprise Edition and configure a zFS file
so that CICS can locate it. Then, you configure a JVM server
and set up the pipeline configuration and resources for z/OS
Connect before you can deploy JSON services and APIs. This initial configuration is a one-time
activity that allows z/OS Connect Enterprise Edition
to run embedded in the Liberty server that is distributed with CICS TS.
Before you begin
Install the z/OS Connect Enterprise Edition run
time. Follow the instructions in the z/OS Connect Enterprise Edition V2.0 product documentation. If you are preparing z/OS Connect Enterprise Edition to run embedded within CICS, then you do not need to create a separate Liberty server
instance. You must install at least the file system components on zFS. Installing the API Toolkit
that is supplied with z/OS Connect Enterprise Edition is
not part of this task.Have you previously installed z/OS Connect for CICS 1.0? If so, several of the steps
in this task are not necessary. The steps that you can skip are indicated in the list.
Procedure
-
Ensure that all the steps in Configuring z/OS Connect Enterprise Edition are complete.
-
Update the
<featureManager> list in the server.xml
file to include the cicsts:zosConnect-2.0 feature.
For
example,
<featureManager>
<feature>cicsts:core-1.0</feature>
<feature>transportSecurity-1.0</feature>
<feature>cicsts:zosConnect-2.0</feature>
</featureManager>
Note: z/OS Connect for CICS 1.0 and z/OS Connect Enterprise Edition features are mutually
exclusive. If you upgrade from z/OS Connect for CICS 1.0 to z/OS Connect Enterprise Edition, you must change the
feature.
-
Define the z/OS Connect Service Controller.
If you use the CICS service provider that is supplied with CICS TS, add the following
statement to the
server.xml
file:
<com.ibm.cics.wlp.zosconnect.CICSEndpoint
id="com.ibm.cics.wlp.zosconnect.CICSEndpointService"/>
If
you have z/OS Connect for CICS 1.0 installed, you
can skip this step because you are likely to have a suitable configuration already.
If you use
the CICS service provider that is supplied with z/OS Connect Enterprise Edition V2, configure the following
elements in server.xml:
-
Define either a local CICS connection, or a remote IPIC connection.
The following example definition is for a local CICS
connection:
<zosconnect_cicsLocalConnection id="eciTest"/>
The following
example definition is for a remote IPIC
connection:
<zosconnect_cicsIPICConnection
id="eciTest"
host="cicshost.company.com"
port="1111"/>
-
Enable deployment of services by using SAR files:
For
example,
<zosconnect_services
pollingRate="5s"
updateTrigger="polled">
-
Install the JVMSERVER. Check the generated messages.log file for error or
warning messages.
This log contains the messages that are generated by WebSphere® Liberty Server, including messages that are issued by
z/OS Connect Enterprise Edition such
as:
SRVE0169I: Loading Web Module: z/OS Connect.
SRVE0250I: Web Module z/OS Connect has been bound to default_host.
-
Create an XML pipeline configuration file. Sample pipeline configuration file jsonzosconnectprovider.xml is provided in the directory /usr/lpp/cicsts/cicsts55/samples/pipelines/ (where /usr/lpp/cicsts/cicsts55 is the default installation directory for CICS files on z/OS
UNIX). Decide whether you want to parse the JSON by using Java™ in the Liberty JVM server (the default), or to use the non Java JSON parser.
Replace
DFHWLP with the name of the JVMSERVER that you created at the start of this procedure.
If you have z/OS Connect for CICS 1.0 installed, you can skip this step because you are likely to have a suitable configuration already.
-
Copy the pipeline configuration file to a suitable directory in zFS and ensure that the file
permissions allow the CICS region to read the file.
For more information, see
Pipeline
configuration files.
If you have z/OS Connect for CICS 1.0 installed, you can skip this
step because you are likely to have a suitable configuration already.
-
Create a PIPELINE resource.
The PIPELINE resource defines the location of the pipeline configuration file. Do not attempt
to use the SCAN mechanism to install WEBSERVICEs into this PIPELINE.
If you have z/OS Connect for CICS 1.0 installed, you can skip this
step because you are likely to have a suitable configuration already.
- Optional:
Create a default URIMAP resource for z/OS Connect.
URIMAP resources are used to associate a TRANSACTION and default user ID
with z/OS Connect work. One or more URIMAP resources can be
used to configure a default policy for z/OS Connect. For an
example of URIMAP configuration and more information on configuration options, see
Configuring permissions for z/OS
Connect Services and APIs.
Note:
z/OS Connect performs extra authentication for individual
HTTP requests, so the application tasks that run in CICS are
typically associated with a more specific User ID than the initial User ID from the URIMAP.
This initial User ID is only in effect until user-specific authentication happens within z/OS Connect. Use a specific User ID such as ZOSCUSER in the
URIMAP, rather than relying on the default CICS User ID to be
used (typically "CICSUSER"), and authorizing it to use the target transactions.
Results
Your z/OS Connect Enterprise Edition instance is
configured. You can test the basic configuration for z/OS
Connect by typing this URL into a web browser:
https://hostname:portnumber/zosConnect/services,
where hostname is the IP address or host name of the system on which the CICS region that is hosting z/OS Connect is running, and portnumber is the
httpsPort that is specified in the <httpEndpoint>
element of the server.xml file. The web browser displays a list of installed
services; because no services are yet installed, the list is empty. If you receive an
HTTP 403 AuthorizationFailed response rather than the expected service list, review
the security configuration step in Configuring z/OS Connect Enterprise Edition. The authenticated
user might not be not be authorized to use z/OS
Connect.
What to do next
You are now ready to deploy JSON services or APIs into z/OS Connect Enterprise Edition. For more information about
deploying services, see Configuring z/OS Connect for a CICS JSON web service. For more information about
deploying APIs, see Using APIs from z/OS Connect Enterprise Edition.