Kbase P22626: What is the default setting for JMS-MAXIMUM-MESSAGES?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  09/02/2006 |
|
Status: Unverified
GOAL:
What is the default setting for JMS-MAXIMUM-MESSAGES?
GOAL:
How to change the maximum number of message objects for the SonicMQ 4GL Adapter?
FIX:
The value of the 4GL global variable, JMS-MAXIMUM-MESSAGES, determines the maximum number of Message objects in a 4GL session. An application must delete unused messages using the deleteMessage method of the Message object to avoid exceeding the JMS-MAXIMUM-MESSAGES value. The default value of JMS-MAXIMUM-MESSAGES is 50. An application can change the value of JMS-MAXIMUM-MESSAGES by declaring it in the 4GL application.
For example, to change the value of JMS-MAXIMUM-MESSAGES from 50 to 100, the main 4GL procedure of the application must include the following definition:
DEFINE NEW GLOBAL SHARED VARIABLE JMS-MAXIMUM-MESSAGES AS INT INIT 100.