CA Gen: Mainframe - Set User ID to Client User ID (tuxedo)
search cancel

CA Gen: Mainframe - Set User ID to Client User ID (tuxedo)

book

Article ID: 95398

calendar_today

Updated On:

Products

Gen Gen - Workstation Toolset Gen - Host Encyclopedia Gen - Run Time Distributed

Issue/Introduction

In the process of converting several applications from MVS blockmode to a java web-based application using TUXEDO/JOLT (server side).

The need is for the USER ID (server side) to be equal to the client user id defined on the client. 

The MAINFRAME change was done by editing the CFBDynamicMessageSecurityExit.java. 

However, the equivalent is needed in the Tuxedo exit (TUXDynamicSecurityExit.java), but haven’t found anything appropriate. 

How can this be achieved on the client side?

Resolution

In the generated JVF files, there is always one user_id entry, 8 characters long. This is the user id system view that is used on the Tuxedo server side.

The CA Gen Java runtime invokes the TuxDynamicSecurityExit getInstance method, passing the Client User Id to the newUserId parameter, which is then stored in the userId field.
 
In the TuxDynamicSecurityExit class, create a call to the joltService.setString(), truncating the userId to 8 characters.