xa_close()--Close an XA Resource Manager (Transaction Scoped ,Locks)


  Syntax
 #include <xa.h>

 int xa_switch.xa_close_entry(char *xa_info,     
     int rmid, long flags);

  Default Public Authority: *USE

  Service Program: QTNXADTP

  Threadsafe: Yes

A transaction manager calls xa_close() to close a currently open resource manager in the thread of control. After this call, the resource manager cannot participate in global transactions on behalf of the calling thread until it is reopened.


Parameters

xa_info
(Input) A pointer to a 256-byte, null-terminated character string that contains information used to close the resource manager. No information is currently allowed in this string. It must be a null string or contain only blanks with a null terminator.

rmid
(Input) An integer value that the transaction manager generated when calling xa_open(). The rmid identifies the resource manager.

flags
(Input) The following are valid settings of flags.

TMNOFLAGS: 0x00000000L Perform the close operation normally.


Authorities

None


Return Value



Error Messages

The following messages may be sent from this function.



Related Information


Example

Note: By using the code examples, you agree to the terms of the Code license and disclaimer information.

#include <xa.h>

main() {
  char  *xa_info;
  int  rmid;
  long flags;
  int  retcode;
  extern struct xa_switch_t xa_switch;

  retcode =
     xa_switch.xa_close_entry(xa_info, rmid, flags);
}


API introduced: V5R2

[ Back to top | UNIX-Type APIs | APIs by category ]