(ZOS) Use WLM with optimized local adapters
Complete all the tasks necessary to use workload management (WLM) with optimized local adapters, including setting up WLM classification rules for Customer Information Control System (CICS ) and WebSphere Application Server for z/OS .
The WLM configuration should contain the service classes and associated goals for our work.
Tasks
- Set up WLM classification rules for CICS and WAS. In this step, configure classification rules in WLM to allow WAS to inherit the service class from a CICS transaction.
- Start the WLM configuration utility, IWMARIN0.
- Select your WLM configuration in the panel and proceed to option 6 to define classification rules.
- Select the rules for the CICS subsystem. If there are not any rules for CICS, create a set of rules for CICS by entering 1 in the action column on any row of the subsystem list.
- Define the rules for our CICS transactions. Enter your CICS transaction name under the Name qualifier, and enter TN under the Type qualifier. In the Service field, enter the service class that we want the transaction to run under.
- Optional: Enter the same rules for WAS. This step is only required if we want WAS to match the service class used by CICS when work is sent to WAS through the optimized local adapter. After entering rules for CICS, enter the same rules for WAS by specifying CB for the subsystem instead of CICS in the subsystem selection dialog.
We have configured WLM with classification rules mapping CICS and WAS transactions to appropriate service classes.
- Configure WAS to match the WLM service class from a CICS transaction. This step explains how to propagate the WLM service class from CICS to WAS on each request. Make sure that WLM is configured with service classes for each CICS transaction that is to be used with the optimized local adapter.
- Modify the WLM transaction class mapping file used by WAS to assign a transaction class to a request. We can modify the class mapping file by adding a section for each EJB application that uses the service name or JNDI home and indicate the caller WLM service class, if set, should be propagated. The following is a sample classification rule:
<InboundClassification type="ola" schema_version "1.0" default_transaction_class="A0"> <ola_classification_info service_name="ejb/myFirstBean" description="Sample" propagate transaction name="true"/> </InboundClassification>The client program uses the optimized local adapter to drive an enterprise bean into WAS. The client WLM performance block is propagated to WAS, where the application server checks the WLM transaction class mapping file and sees that this request should be classified based on the client WLM performance block.The transaction name from the performance block is used to classify the work and it is queued to WLM under a new enclave. WLM finds a classification rule in its configuration for WAS, matching the transaction name used by CICS, and uses the resulting service class.
Work dispatched in WAS through the optimized local adapter runs under the same service class as the client request.
- Assign work priority for EJB requests that are driven through the optimized local adapter. This step explains how to match an EJB request that is received by WAS through the optimized local adapter to an arbitrary WLM service class, based on the EJB JNDI home name. The WLM attributes of the EJB request are not changed by the client.
- Modify the WLM configuration on the MVS™ system, creating transaction class names which map to service classes. This is the same process done for IIOP or HTTP on WAS for z/OS.
- Create entries in the WLM transaction class mapping file for WAS. To create the entries, use the JNDI home name of the enterprise bean that is driven through the optimized local adapter and the transaction class used. Use a wildcard for the JNDI home name.
<InboundClassification type="ola" schema_version "1.0" default_transaction_class="A0"> <ola_classification_info service_name="ejb/mySecondBean" description="Classify using transaction class" transaction_class="A1"/> <ola_classification_info service_name="ejb/security/*" description="Classify all secure beans using transaction class" transaction_class="A2"/> </InboundClassification>The client application sends a request for an enterprise bean through the optimized local adapter. WAS finds a matching entry in the WLM transaction class mapping file and uses the associated transaction class to classify the work with WLM. The transaction class is mapped by WLM to a service class which is returned on the classify request and used to queue the work to a servant region. Work dispatched in WAS through the optimized local adapter runs under the service class which matches a definition in the WLM transaction class mapping file.
Related:
Workload management (WLM) for z/OS Classifying z/OS workload z/OS: Use optimized local adapters for inbound support z/OS: Use optimized local adapters for outbound support