Thanks very much, Will; I will pass it on.
 
Ruzi 


WR <[EMAIL PROTECTED]> wrote:
At 05:19 AM 5/12/2004, Ruzi R wrote:
>Hi,
>
>One of our VB developers (on W2K/MQ 5.3) has pointed
>out that GET with Wait was not working. He says he
>sets MQGMO_WAIT for the MQGMO options, and
>MQGMO_WAITINTERVAL =30000. I suggested setting the
>Wait-interval to even a bigger number to see if he
>would notice any difference -- it did not make any
>diff. I tested the "Get with Wait" in the sample VB
>program that comes with MQ, and it works. So, I think
>the problem has something to do with with ActiveX. Any
>ideas?
>
>Your input would be much appreciated.

Here's a code fragment that work for me:

Global GetMsg As MQMessage
Global getMsgOpts As MQGetMessageOptions

. . .

Set GetMsg = MQSess.AccessMessage()
Set getMsgOpts = MQSess.AccessGetMessageOptions()
getMsgOpts.Options = MQGMO_WAIT Or MQGMO_CONVERT
getMsgOpts.WaitInterval = 5000
InputQueue.Get GetMsg, getMsgOpts

-Will

Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive

Reply via email to