Previous Topic: Transaction RoutingNext Topic: NEXTLOCATION


Directory Services User Exit

The Client Manager Directory Services user exit is a dynamic-link library (DLL) that contains routines (or functions) to implement transaction routing.

Note: Code for a sample Directory Services user exit is provided with the Client Manager installation, in iefdir.c. The iefdir.c source code is located in the
\samples\ClientManager subdirectory of the directory where the Client Manager is installed. This code contains the description and sample usage of the Client Manager Directory Services API. Because the roles of these functions represent only a baseline behavior, the source code for the Directory Services user exit may require tailoring for the implementation of your specific transaction routing scheme. Exercise caution when modifying the user exit code. One or more of the supplied example subroutines may subject string data to modification due to the need to trim leading and trailing spaces. You must be careful when supplying strings constants to ensure they are stored within modifiable rather than read only memory.

The following examples and the Transaction Routing Flow illustration represent possible scenarios for when Directory Services should be considered:

If Directory Services is not enabled or if the Directory Services user exit returns a NULL value, transactions are routed to the Default Server—if one has been specified. Otherwise, an error is returned to the DPC application.

The following diagram illustrates Transaction Routing Flow:

Transaction Routing Flow