# tibemsXAConnection_GetXASession

Function

## Purpose

Get the XA session object from an XA connection.

## C Declaration

    tibems_status tibemsXAConnection_GetXASession(
        tibemsConnection* connection,
        tibemsSession* xaSession );

## COBOL Call

    CALL "tibemsXAConnection_GetXASession"
         USING BY VALUE connection,
               BY REFERENCE xaSession,
               RETURNING tibems-status
    END-CALL.

Note: `connection` and `xaSession` have usage pointer.

## Parameters

Parameter | Description
--- | ---
`connection` | Get the XA session object from this XA connection.
`xaSession` | Stores the XA session object in this location.

## Remarks

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

Copyright © Cloud Software Group, Inc. All rights reserved.