Create a seperate HBJS transaction for each service.
search cancel

Create a seperate HBJS transaction for each service.

book

Article ID: 369128

calendar_today

Updated On:

Products

HB.js

Issue/Introduction

Is there a way to create a separate transaction name of the HBJS transaction that is the default to another transaction name?

Environment

Z/OS

CICS

Resolution

 
Assign transaction ID base on the URL path of the incoming request:
  1. Copy the HBJS transaction URIMAP definitions to new name:
    • CEDA COPY TRANS(HBJS) AS(HBJ1)
    • CEDA COPY URIMAP(HBJS) AS(HBJ1)
  2. Update the transaction attribute on the URIMAP to point to the new transaction ID
  3. Edit the new URIMAP PATH attribute on the new definition to select the scripts or repositories you wish to run under the new transaction id.  PATH examples:
    • /hbscript/mySpecialScripts   A specific service
    • /hbscript/accounting*        All services starting with accounting
    • /account/*                   All services in repository account
  4. Repeat the above as required, any number of URIMAPs and transaction IDs can be created.

Alternatively you can assign a new TCP IP port to the region and all requests sent to that port can run on a different transaction ID:

  1. Repeat steps 1 and 2 above
  2. Copy the TCPIPService definition (HBNSSL name may be different) to a new name
    • CEDA COPY TCPIPS(HBNSSL) AS(HBNSSL1)
  3. Update the TCPIPService attribute PORT to a new port number assigned to the region
  4. Update the URIMAP to point to the new TCPIPService definition