< Day Day Up > |
RRSAF, or the Recoverable Resource Manager Services Attach Facility, is the final "door to DB2." RRSAF is available as of DB2 V5. RRSAF is similar in functionality to CAF but without the implicit connection capabilities. However, RRSAF provides the following additional capabilities and benefits:
As with CAF, RRSAF controls program connections to DB2. Seven functions are used to control the DB2 connections:
Consider using RRSAF as an alternative to CAF when the performance benefits of thread reuse are deemed necessary. When you're preparing a program for RRSAF, you must link DSNRLI (the RRSAF interface) to the load module.
Explicit DB2 connections are coded similarly in CAF and RRSAF. For CAF applications, you issue a CONNECT and OPEN . To accomplish the same thing in RRSAF you issue an IDENTIFY and CREATE THREAD . SQL statements can then be issued in your program. To disconnect, CAF uses a CLOSE and DISCONNECT , whereas RRSAF uses a TERMINATE THREAD and TERMINATE IDENTIFY . But, CAF applications also can connect implicitly to a DB2 subsystem just by issuing SQL statements or IFI calls (without first issuing CONNECT and OPEN ). For DB2 V7 and prior releases this was not possible with RRSAF, but DB2 V8 allows implicit connections to DB2 using RRSAF by just issuing SQL statements or IFI calls. |
< Day Day Up > |