Oracle® Application Server Integration Adapter for IMS/TM Installation and User's Guide 10g (9.0.4) Part Number B10504-01 |
|
The Oracle Application Server Integration Adapter for IMS/TM includes a set of APIs that enable sending a native event as an inbound interaction from a COBOL program.
To use the APIs, you must include the following in the COBOL program:
This appendix describes the APIs and functions:
"Sending Inbound Interactions Using an IMS/TM Transaction" for details of how to use a CICS transaction that calls the APIs instead of using the APIs
See Also:
The following functions handle the connection and connection context for an inbound interaction:
There are two kinds of connections:
Transient Connection - Transient connections are created for use within a single inbound interaction. A transient connection is disconnected when an inbound interaction ends, or when the connection context changes (that is, with the connect
, setConnection
or disconnect
functions).
Persistent Connection - Persistent connections can persist across multiple inbound interactions or connection context changes. Persistent connections are disconnected upon an explicit disconnect
function or when a connection idle timeout expires.
The Connect
function establishes a new connection context. All the interactions defined take place within a connection context.
Upon a successful connect, a connection context is established and an implicit setConnection is performed with the newly created connection ID. A failed connect
function leaves the inbound interaction with no connection context (that is, if a connection context was established prior to invoking the connect
function, that connection context will no longer be in effect).
The function returns an integer of 1 (TRUE) or 0 (FALSE), to determine the success of the function.
ACXACNCT using ServersUrls Username Password Workspace AdapterName Persistent IdleTimeout ConnectMode DefinitionFileName KeyName KeyValue ConnectHandle
The Disconnect
function destroys the current connection context. All the resources associated with the current connection (persistent or transient) are released.
ACXADSCO using ConnectHandle
Parameter | Usage | Description |
---|---|---|
ConnectHandle |
Input |
A pointer to the connection |
Transaction APIs are used in the following scenarios:
Non-transacted operation - The adapter works in auto-commit mode. Work is committed immediately and automatically upon execution. This operation mode is the default operation mode when no transaction APIs are used, or when the setAutoCommit
function sets auto-commit to true.
Local transaction operation - When auto-commit is set to false, the first interaction starts a transaction that lasts until an explicit commit (using the transactionCommit
function) or an explicit rollback (using the transactionRollback
function) occurs. All interactions performed in between are part of that transaction.
The following functions handle transaction operations:
The Set Autocommit
function sets the auto-commit mode of the connection.
ACXASCMT using ConnectHandle AutoCommit
The Transaction Commit
function commits the work done under the global or local transaction.
ACXACMIT using ConnectHandle Xid
Parameter | Usage | Description |
---|---|---|
ConnectHandle |
Input |
A pointer to the connection. |
Xid |
Input |
For internal use only. Supply an empty value |
The Transaction Rollback
function rolls back the work done under the (global) transaction.
ACXARBCK using ConnectHandle Xid
Parameter | Usage | Description |
---|---|---|
ConnectHandle |
Input |
A pointer to the connection |
Xid |
Input |
For internal use only. Supply an empty value |
The Execute
function executes a given interaction against the application. The function supplies the input record that is required by the application.
ACXAEXEC using ConnectHandle InterationName BufferIn BufferOut BufferOutLen
The Get Event
function determines the event to wait for and how long to wait. When an event is received, the function returns the results of performing the event.
ACXAGTEV using ConnectHandle EventName Wait Keep BufferOut BufferOutLen
The Ping
function returns, in a pingResponse response, information about an active adapter.
ACXAPING using ConnectHandle OutputStruct
Parameter | Usage | Description |
---|---|---|
ConnectHandle |
Input |
A pointer to the connection |
OutputStruct |
Output |
The return information describing the structure of the adapter |
The Get Error
function returns error information.
ACXAGTER using ConnectHandle Error Status
Parameter | Usage | Description |
---|---|---|
ConnectHandle |
Input |
A pointer to the connection |
Error |
Output |
The error message returned by the function |
Status |
Output |
The status of the returned error |
|
![]() Copyright © 2003 Oracle Corporation. All Rights Reserved. |
|