9.147 MESSAGE_COLLECTOR

Note: Built-In Function Rules     Usage Options

Nominates a function as a "message collector".

Arguments

No Argument Values.

Return Values

No Return Values

Technical Notes

          if ( ....... )
    use MESSAGE_COLLECTOR
    endif

       This code will become a message collector regardless of the IF condition.


Warnings:

  • Do not under any circumstances whatsoever design applications that use the MESSAGE_COLLECTOR Built-In Function to affect the way that the application works. In other words, the application should be functionally identical regardless of whether this Built-In Function is used or not. MESSAGE_COLLECTOR must only be used to speed up message routing - not to implement any other form of logic or architecture that relies on its existence to work correctly.

    While it is thought that designers could not use MESSAGE_COLLECTOR to change processing in any way, it is better that this important point is noted.  The message routing logic used by Visual LANSA is much more efficient that the IBM i message routing architecture, and has no need of this special option to speed it up.

  • Up to 10 message collectors may be stacked.