F
Fuelfire
Guest
Anand, thank you. I read in the manual that I must use waitForMessages when in AppServer environment and in batch application. Well, I modified the programs. (Please visit the site to view this file) Hope it helps somebody. In case I specify in this procedure "?" for a time interval, and there are no messages in the queue, my program starts to wait for it and stops responding. RUN waitForMessages IN ptpsession ("inWait", THIS-PROCEDURE, ?). I decided to set the interval in 5 seconds to make the program complete. RUN waitForMessages IN ptpsession ("inWait", THIS-PROCEDURE, 5). If there are no messages in the queue, the program actually ends in 5 seconds.. But!!! I noticed such strange behavior: in the event that I put one message in the queue (and it's in the queue really one), I can get it not once but 5, 9 times. The message is not picked up from the queue at once. I do not understand why. If I call the procedure like this: RUN waitForMessages IN ptpsession ("inWait", THIS-PROCEDURE, ?). I get the message the first time.. I could stay on this variant, but then I should understand when to interrupt the execution of the program in case there are no messages in the queue. Thanks!
Continue reading...
Continue reading...