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!

Channel connection from a VB MQ Client to a NT MQ Server 2

Status
Not open for further replies.

chamath

Programmer
Apr 19, 2001
1
GB
I currently use the MQAX200.DLL from my VB MQ Client application to place messages on a Queue on a separate MQ server machine. This utilises the MQSERVER environment variable on the client machine to specify the channel connection to the server, which means that only ONE Queue Manager can be accessed.

Is there some way of using the interface\properties provided by the MQAX200.DLL to specifiy a Channel connection at run time, or is the only way to do this programmatically by using the MQCNO structure with the MQCONNX call??

Thanks,
Cham.
 
You can use channel table, thus you can connect multiple queue managers from different threads.

Regards.
Leonid.
 
Hi People I wonder can anyone help

We have installed MQ on a nt server and i want to try and put some messages on it through VB

I have the MQ Activex Component (MQAX200.dll.

I want to connect to a queue i do the following

Set MQSess = CreateObject("MQAX200.MQSession")
Set QMgr = MQSess.AccessQueueManager("MTW2BR01")

But get a 2058 which i presume is cant fine the queue.

Can anyone help or provide with a sample program and steps involed to connectint to the queue and puting a mesaage on it.


Thank a million.
 
Hello,
I am having the similar problem. Except that I have Error Code 2059 Which is MQRC_Q_MGR_NOT_AVAILABLE, and I am running an ASP Page which is VBScript.

My code is:
Set MQSess = Server.CreateObject("MQAX200.MQSession")
Set QMgr = Server.CreateObject("MQAX200.MQQueueManager")

Set QMgr = MQSess.AccessQueueManager("MYQMGRNAME")

I gave both the IUSR and IWAM Account on the IIS server that it's running on with the MQ Admin rights already.

Please help us! Thanks in advance.

TechChi

 
Hey guys. I figured this out. There's nothing wrong with your codes. It's the NT Rights issue. First of all, install the lastest Fix Pack from IBM, and the link for it is: Secondly, give both the MUSR_MQADMIN and IWAM_XXXXXXXX accounts the Domain\domain mqm rights. Third, the MUSR_MQADMIN account also needs the admin or equivalent rights. Finally and the most important step is to reboot your box. Good luck!!!
 
Hello,

I have a similar error but the returned code is 2195. What is the structure of the MQSERVER environment variable??
In my Windows 2000 Server , where is my client application, I configured it by this way :
- MQSERVER = CLIENT.BIZ.CANAL/TCP/192.168.0.189(2270)

My MQ SERVER is on Linux Red Hat 8 and its private IP is 192.168.0.189. The listener port is 2270

Please help me! I'll appreciate your help.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top