The API exit routines to run are identified in stanzas (UNIX) or Registry entries (Windows). (For simplicity, we talk about the stanzas in mqs.ini and qm.ini; Windows users provide the same information using the WebSphere MQ Services snap-in.) The definition of the routines can occur in three places:
When a new queue manager is created, the ApiExitTemplate definitions in mqs.ini are copied to the ApiExitLocal definitions in qm.ini for the new queue manager. When a queue manager is started, both the ApiExitCommon and ApiExitLocal definitions are used. The ApiExitLocal definitions replace the ApiExitCommon definitions if both identify a routine of the same name. The Sequence attribute, described in Attributes for all stanzas determines the order in which the routines defined in the stanzas run.