tibemsConnectionFactory_SetUserName

Function

Purpose

Set a connection factory’s username.

C Declaration

tibems_status
tibemsConnectionFactory_SetUserName(
    tibemsConnectionFactory factory,
    const char* username);

COBOL Call

CALL "tibemsConnectionFactory_SetUserName"
     USING BY VALUE factory,
           BY REFERENCE username,
           RETURNING tibems-status
END-CALL.
Note: factory has usage pointer.

Parameters

Parameter Description
factory Set the username on this connection factory.
username The connection factory identifies itself using this username.

Remarks

When a connection factory establishes an EMS server connection, the EMS server requests identification. Use this call to set the username that the connection factory uses to identify itself to the EMS server. Notice that this server authentication data is different from TLS authentication data.