Previous Topic: Multi-User Diagram Trace Utility SupportNext Topic: Overriding Application.ini for Block Mode Testing


Overriding the default trace environment variables

A client transaction can transfer the host and port of the client executing the transaction, enabling the server to establish communication with the Diagram Trace Utility running on that client workstation.

To use the client's Diagram Trace Utility

  1. Build the server application that was generated with trace.
  2. Leave the trace environment variables in the application.ini file on the server application's model directory commented out.
  3. Invoke the TP monitor that will manage the server application. TE, Tuxedo, or MQ Series.
  4. Invoke the Diagram Trace Utility on the client workstation.
  5. Edit the application.ini file in the client application's executables directory.
  6. Uncomment and set the trace environment variables. Use 'localhost' for the TRACE_HOST variable.
  7. Execute your client application.

    The Diagram Trace Utility on the client workstation traces the server for each transaction initiated from that client.

Note: To provide the server with the client's host and port information, these values are added to the Common Format Buffer (CFB). A CFB is used to exchange view data between the client and server. If the addition of the host and port values exceeds the allowable size of the CFB, the host and port values are not added to the CFB and the statement "Not enough space in CFB to pass Trace flags to server" is logged to the client's trace file. The end result is that no override takes place, and the values of the host and the port will be extracted from the server's application.ini file.