[Info-vax] MQ series client support AST?

rockdale rockdale.green at gmail.com
Thu Dec 10 14:20:38 EST 2009


Jan-Erik:


Thanks for your reply.

Right now I have a while loop to read  (MQGET) from MQ server and it
works fine.

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.

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