Affinity relations and affinity lifetimes

When you create a transaction group, you can assign to the group an affinity relation using the AFFINITY attribute and an affinity lifetime using the AFFLIFE attribute. The affinity relation determines how the dynamic or distributed routing program selects a target region for a transaction instance associated with the affinity. The affinity lifetime determines when the affinity ends.

The five possible affinity relations that you can assign to your affinity groups are BAPPL , Global , LOCKED , LUname , and userid . The affinity lifetime you assign to an affinity depends on the affinity relation. For example, if the affinity relation is LOCKED , the affinity lifetime must be UOW, whereas if the affinity relation is BAPPL, you can set the affinity lifetime to Activity , Permanent , Process or System.