tibemsXAConnection_Get

Function

Purpose

Find the XA connection object for a server URL.

C Declaration

tibems_status tibemsXAConnection_Get(
    tibemsConnection* connection,
    const char* brokerURL );

COBOL Call

CALL "tibemsXAConnection_Get"
     USING BY REFERENCE connection,
           BY REFERENCE brokerURL,
           RETURNING tibems-status
END-CALL.
Note: connection has usage pointer.

Parameters

Parameter Description
connection Stores the connection object.
brokerURL Find the connection the EMS server at this URL. If configuring a fault-tolerant client, enter two of more URLs, as described in Configuring C and COBOL Clients for Fault-Tolerant Connections.

Remarks

If the TM has implicitly created a connection by calling xa_open, then the TM can get that connection object with this call.