Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reply-to-queue in MqSeries using Visual Basic

Status
Not open for further replies.

kjoter

Programmer
May 22, 2003
2
NO
Hi

I have made a Visual Basic 6.0 application for putting messages on an MqSeries queue.
My problem is to send the reply to queue and reply queue manager to the mqseries server. It uses default mqseries replyqueuemanager, and empty reply queue. I want to set the reply queue so the program on the other side knows where to send the replies.

Do anyone know how to set the reply queue in VB? All suggestions will be appriciated. Happy for codeexamples :)
Thanks
 
Include the IBM-supplied CMQB.BAS module and define a message descriptor
Dim MsgDesc As MQMD

You can set
MsgDesc.ReplytoQ and
MsgDesc.ReplytoQMgr

Alternatively, if using ActiveX, you can define (say)

Dim PutMsg as MQMessage

this enables you to set
PutMsg.ReplyToQueueName and
PutMsg.ReplyToQueueManagerName

Unless you are having the reply send to a QMgr other than the one where the request is originating, you shouldn't set the ReplyToQMgr - the originating QMgr will supply this by default. This leaves the application more flexible.

Garry.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top