Mainframe - Set User ID to Client User ID (tuxedo)

Document ID : KB000095398
Last Modified Date : 29/05/2018
Show Technical Document Details
Issue:
We are converting several applications from MVS blockmode to a java web-based application using TUXEDO/JOLT (server side) 

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

We already achieved this on MAINFRAME by editing the CFBDynamicMessageSecurityExit.java. 

Howeve, We've reviewed the equivalent Tuxedo exit (TUXDynamicSecurityExit.java), but haven’t found anything appropriate. 

Is it possible to guide us to achieve this?
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.