6.7.1.1.1 Task capabilities
Any task in an address space can establish a connection to DB2 through CAF. There can be only one connection for each task control block (TCB).
DB2 service request issued by a program running under a given task is associated with that task's connection to DB2. The service request operates
independently of any DB2 activity under any other task.
Each connected task can run a plan. Multiple tasks in a single address space can specify the same plan, but each instance of a plan runs independently
from the others. A task can terminate its plan and run a different plan without fully breaking its connection to DB2.
CAF does not generate task structures, nor does it provide attention processing exits or functional recovery routines. You can provide whatever attention handling and functional recovery your application needs, but you must use ESTAE/ESTAI type recovery routines and not Enabled Unlocked Task (EUT) FRR routines.
Using multiple simultaneous connections can increase the possibility of deadlocks and DB2 resource contention. Your application design must consider that possibility.
Partager