tibemsConnectionFactory_Create

Function

Purpose

Create a connection factory.

C Declaration

tibemsConnectionFactory tibemsConnectionFactory_Create( void );

COBOL Call

CALL "tibemsConnectionFactory_Create"
           RETURNING factory
END-CALL.
Note: factory has usage pointer.

Remarks

The resulting connection factory object is empty. This call does not attempt to access the repository (see also tibemsLookupContext).

If the connection factory has OAuth 2.0 parameters set, the connection object created will attempt to obtain an OAuth 2.0 access token and present it to the EMS server for authentication. If the EMS server successfully validates the token, then the call succeeds.

The value passed to the username parameter determines which grant type is used for requesting access tokens from the OAuth 2.0 authorization server. If the username parameter is null, the connection object will request access tokens via the client credentials grant type. Otherwise, the connection object will use the username and password parameter values to request access tokens via the resource owner password credentials grant type.

See Also

tibemsLookupContext