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!

Connecting as MQSeries client using MQAX200 interface

Status
Not open for further replies.

mqbrowser

Programmer
Feb 15, 2002
15
US
Hi,

Does anyone know how to use the MQAX200 interface connect to the MQ client libraries? We are trying to write a VB program to connect to a remote queue manager using MQ client. The AccessQueueManager method seems to work when connecting to a local queue manager but not remote. Any ideas?

Vinoo Palayoor
 
Vinoo -

We have a remote definition set up to transmit messages from NT to Mainframe. We wrote a COM object that uses the MQAX dll to put messages into this remote queue definition. We are using the DistributionList class of the MQAX object. If you'd like to see some sample code, just let me know.

Ryan
 
Make sure you have your Environment variable "MQSERVER" set to the remote MQSeries server.
 
Ryan,

Thanks. So to clarify you have your NT box installed with MQ client and you are using the MQAX200 component in your COM object to connect to a queue on your mainframe? My situation is that I am able to connect via the client through test apps (amqsputc and a test app that uses the cmqb.bas VB module)but I have not had success using the MQAX interface. Do you have to set a property somewhere so that the MQAX object knows to connect using the MQ client libraries? Sample code would be great. I am at vinoo@mail.com.

Thanks,
Vinoo
 
From the COM manual:

The MQSeries client requires access to at least one MQSeries server. When both the MQSeries server and client are installed on your system MQAX applications will always run against the server.

You need to make sure only the MQ client is installed on the system, and then ensure you have the MQSERVER environment variable set.

Scott Meridew
Cerified MQSeries Specialist
MQ Squared Inc.
smeridew@sympatico.ca
Scott Meridew
Certified MQSeries Specialist,MCSE
MQ Squared Inc.
 
Scott,

That is the answer I was looking for! Every box we are testing on has both the client and the server installed!

Many thanks,
Vinoo
 
Vinoo,

Next time you need help I'll be happy to help you out.

Thanks,

Scott Meridew
scott@txmq.com
Certified MQSeries Specialist,MCSE
MQ Squared Inc.

I'm also an independant MQSeries consultant, so if you come across any short-term assignments, look me up :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top