Outline for Calling Prepare and Commit

This table provides an outline for calling prepare and commit:

Function

Description

Dim soeOWInterface As OneWorldInterface

Declare the OneWorldInterface.

soeOWInterface.BeginTransaction (accessNumber, connector, txMode)

Start the transaction in manual commit by calling begin transaction and setting the txMode to 1. 0 is for auto commit.

//execute all BSFNs like the

//enddoc and other BSFNs

After a call to Begin Transaction is made, do all the transactions that you want to enclose within this manual commit before calling prepare.

soeOWInterface.Prepare

Call prepare when all of the transactions are done.

soeOWInterface.Commit

(or)

soeOWInterface.RollBack

Call Commit to commit the transaction

(or)

Rollback to roll back the transaction if an error occurs.

The default timeout value for a manual transaction is 5 minutes. If you do not commit the transaction within 5 minutes, the transaction context is freed and the transaction is rolled back. You can change the default timeout by setting the manual_timeout value in the [INTEROP] section of the jdeinterop.ini file. The value is in milliseconds.