[Info-vax] MQ series client support AST?
Jan-Erik Söderholm
jan-erik.soderholm at telia.com
Thu Dec 10 14:50:05 EST 2009
rockdale wrote:
> Jan-Erik:
>
>
> Thanks for your reply.
>
> Right now I have a while loop to read (MQGET) from MQ server and it
> works fine.
Like calling MQGET and, if "no-data" is returned, wait a while and
call MQGET again ?
What I was talking about was to let the MQGET wait until there
is something to read on the queue (or timeout, but that could
be a "longer" time). I have not tried it, but from reading
the docs I seems to have read that there is a flag in the
MQGET call to let the call wait for data on the queue (or
to timeout from the MQGET call).
The other was of doing it is to define a trigger on the
queue but, as far as I understand, you need the full install
in that case.
While browsing the docs, I do not remember seeing anything
about AST's from MQ...
Note, I haven't used MQ myself, but we are investigating
installing MQ on a couple of Alpha's. That would be the
full kit.
> Our customer does not like this polling idea (read the MQ in a while
> loop) and they asked if it is possible to change to use AST. Like TCP/
> IP socket communication when we call sys$qiow to read from the socket,
> when the socket buffer has new data it will tigger the AST routine and
> we will handle the data from there.
You still need the image/process beeing active, so I do not see
the real benefit from having the image wait in the MQGET call.
I also think that that will get the fastest response time from
from the application.
Jan-Erik.
> What I am asking is does MSQ series client also has such mechanism
> when a new message is ready, my application will get an ast and we
> will read the new message, instead of keeping read the MQ for a new
> message.
>
> Again, thanks
> -Rockdale
>
>
>
> On Dec 10, 2:08 pm, Jan-Erik Söderholm <jan-erik.soderh... at telia.com>
> wrote:
>> rockdale wrote:
>>> Hi all:
>>> I have a c application running on openvms and reading messages from MQ
>>> Server on a windows machine. Right now, the application is polling the
>>> message but now we want to change it to AST enabled. Does anybody know
>>> that MQ series client support AST? just like TCP/IP? I am very new to
>>> OpenVMS.
>>> Thanks in advance
>>> -rockdale
>> If I'm not wrong, you could also read from the MQ-queue
>> with a timeout, that is, you are stuck in the read until
>> something arrivs on the queue *or* the timeout "times-out".
>> At timeout you can just re-issue the read operation.
>> That would give you fast respons, which is what I guess
>> you are realy asking for.
>>
>> Jan-Erik.
>
More information about the Info-vax
mailing list