Home

 

Multiple send exits

 

We can specify a list of send and receive exit programs to be run in succession. WebSphere MQ maintains a total for the space reserved by all of the send exits. This total space must leave at least 1 KB for message data in the transmission buffer.

The following example shows how space is allocated for three send exits, called in succession:

  1. When called for initialization:

    • Send exit A reserves 1 KB.

    • Send exit B reserves 2 KB.

    • Send exit C reserves 3 KB.

  2. The maximum transmission size is 32 KB and the user data is 5 KB long.

  3. Exit A is called with 5 KB of data; up to 27 KB are available, because 5KB is reserved for exits B and C. Exit A adds 1KB, the amount it reserved.

  4. Exit B is called with 6 KB of data; up to 29 KB are available, because 3KB is reserved for exit C. Exit B adds 1KB, less than the 2KB it reserved.

  5. Exit C is called with 7 KB of data; up to 32 KB are available. Exit C adds 10K, more than the 3KB it reserved. This is valid, because the total amount of data, 17 KB, is less than the 32KB maximum.

 

Parent topic:

Channel send exit programs — reserving space


ic17550_


 

Home