ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ API Support » MQAX / Connectiong different queuemanagers concurrently

Post new topic  Reply to topic
 MQAX / Connectiong different queuemanagers concurrently « View previous topic :: View next topic » 
Author Message
schlaufuchs
PostPosted: Fri Apr 11, 2003 5:18 am    Post subject: MQAX / Connectiong different queuemanagers concurrently Reply with quote

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?

Thanks in advance,
Kai
Back to top
View user's profile Send private message
HrothgarV
PostPosted: Fri Apr 11, 2003 7:45 am    Post subject: Reply with quote

Novice

Joined: 07 Apr 2003
Posts: 17

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.

hope this helps
HrothgarV
Back to top
View user's profile Send private message
vmcgloin
PostPosted: Sun Apr 13, 2003 8:27 am    Post subject: Reply with quote

Knight

Joined: 04 Apr 2002
Posts: 560
Location: Scotland

Quote:
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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » MQAX / Connectiong different queuemanagers concurrently
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.