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:
Copy the HBJS transaction URIMAP definitions to new name:
CEDA COPY TRANS(HBJS) AS(HBJ1)
CEDA COPY URIMAP(HBJS) AS(HBJ1)
Update the transaction attribute on the URIMAP to point to the new transaction ID
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
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:
Repeat steps 1 and 2 above
Copy the TCPIPService definition (HBNSSL name may be different) to a new name
CEDA COPY TCPIPS(HBNSSL) AS(HBNSSL1)
Update the TCPIPService attribute PORT to a new port number assigned to the region
Update the URIMAP to point to the new TCPIPService definition