To see how the precedence rules work, assume that you set up the service name redirection file shown in Table 6-3.
requested_service |
user_id |
application_name |
assigned_service |
---|---|---|---|
AS400 |
Bob |
isql |
as1 |
AS400 |
* |
isql |
as2 |
AS400 |
* |
Omni |
omniA |
AS400 |
* |
PowerBuilder™ |
powerB |
DB2 |
* |
Omni |
db2omni |
DB2 |
* |
* |
db2gen |
<tab> |
* |
* |
as3 |
* |
* |
* |
as4 |
Based upon the preceding table, the following are true:
If Bob requests service AS400 using an isql command, he is redirected to service “as1.”
If anyone other than Bob requests AS400 using an isql command, that person is directed to service “as2.”
Anyone who requests service AS400 using Omni is directed to service “omniA.”
Anyone who requests service AS400 using PowerBuilder is redirected to service “powerB.”
Anyone who requests service AS400 using any other application is not redirected. Such requests are connected directly to service “AS400.”
Anyone who requests service DB2 UDB using Omni is directed to service “db2omni.”
Anyone who requests service DB2 UDB using any other application is redirected to service “db2gen.”
All Microsoft and earlier Sybase DB-Library clients for which the requested service name is blank are directed to service “as3.”
Finally, all other clients are routed to service “as4.”