Posted: Fri Apr 11, 2003 5:18 am Post subject: MQAX / Connectiong different queuemanagers concurrently
Newbie
Joined: 11 Apr 2003 Posts: 1
Hello,
I have a very delicate problem where I can't find any help in documentation. I have a progam, more exactly an ASP application which uses MQAX and shall show stati and messages from several queues on _different_ queue managers and systems on demand. So I need a way to get the MQ Series Client on my web server configured dynamically to connect the queuemanager I need to use. Setting the MQSERVER environment variable via WSH before creating the session object didn't work. So has anyone a clue how I can switch between queuemanagers/systems on demand?
u cant use the mqserver in this case because u are connecting to different qmgrs dynamically. u can achieve what u wanted by using MQCONNX and populating the corresponding MQCNO / MQCD attributes. The values in MQCD.ConnectionName, MQCD.ChannelName, MQCD.TransportType are the equivalent of MQSERVER env var.
btw. i have created a COM-based DLL that wraps the typical MQI function calls. you can use this in your ASP/WSH apps (it has simple & easy-to-understand methods and properties). pls let me know if u'r interested and i'll email it to u.
Setting the MQSERVER environment variable via WSH before creating the session object didn't work. So has anyone a clue how I can switch between queuemanagers/systems on demand?
Have you considered using a client channel connection table? Assuming you know the names of the range of server qmgrs beforehand you can set up the table with them all and just specify the qmgr name on the connect call. You would also need to setup the AMQCHLTAB and AMQCHLLIB env vars if you did not use the default path and file name. All the admin can be done beforehand and you don't need to worry about it within the application.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum