BOster
Legendary Poster
Is it possible to initiate a transaction and define a transaction boundary at the BSFN level and extend it to called BSFNs?
I know I can use JDEDB_COMMIT_MANUAL and JDB_CommitUser/JDB_RollbackUser for DB updates within a single BSFN but I would like to start a TP inside of a BSFN and extend that transaction boundary to other called BSFNs much the same way I would from a UBE or from an APPL and any user handles opened with JDEDB_COMMIT_AUTO would operate within that TP just like they do with UBE/APPL transactions.
The following APIs in jdekprto.h look like they might do something like that, but I can't find any pristine examples where they are used.
KRNL_RTN(JDEDB_RESULT) JDEWINAPI JDB_BeginTransaction(HUSER);
KRNL_RTN(JDEDB_RESULT) JDEWINAPI JDB_CommitTransaction(HUSER);
KRNL_RTN(JDEDB_RESULT) JDEWINAPI JDB_RollbackTransaction(HUSER);
KRNL_RTN(JDEDB_RESULT) JDEWINAPI JDB_CancelUserTransaction(HUSER);
I know I can use JDEDB_COMMIT_MANUAL and JDB_CommitUser/JDB_RollbackUser for DB updates within a single BSFN but I would like to start a TP inside of a BSFN and extend that transaction boundary to other called BSFNs much the same way I would from a UBE or from an APPL and any user handles opened with JDEDB_COMMIT_AUTO would operate within that TP just like they do with UBE/APPL transactions.
The following APIs in jdekprto.h look like they might do something like that, but I can't find any pristine examples where they are used.
KRNL_RTN(JDEDB_RESULT) JDEWINAPI JDB_BeginTransaction(HUSER);
KRNL_RTN(JDEDB_RESULT) JDEWINAPI JDB_CommitTransaction(HUSER);
KRNL_RTN(JDEDB_RESULT) JDEWINAPI JDB_RollbackTransaction(HUSER);
KRNL_RTN(JDEDB_RESULT) JDEWINAPI JDB_CancelUserTransaction(HUSER);