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 Installation/Configuration Support » VB Client app is now on a server and now doesn't know its a

Post new topic  Reply to topic
 VB Client app is now on a server and now doesn't know its a « View previous topic :: View next topic » 
Author Message
PeterPotkay
PostPosted: Fri Feb 22, 2002 12:40 pm    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7717

I have a VB app that runs on a dos window. It's purpose is to look at reply queues that accept messages back from the OTMA Bridge. Since these messages always come back Expiry Unlimited, queues over time fill up with orphaned replies that never go away. So, we wrote this app, that goes to each of these queues, browses all the messages, and destructively gets any that are over X days old.

As it needs to connect to every QM in our system, what happens is that I have a little bat file that uses the SET MQSERVER method to point to QM1 on server1, the app then runs and does it's thing, then the SET MQSERVER command is run again for the next QM, and so on and so forth. From my pc with the MQClient ONLY installed it works great. Other pcs with only the MQClient installed also have no problems.

So now I want to run this from a pc that has an MQSeries Queue Manager installed. The problem is that it just keeps connecting to the local queue manager. Its like it ignores the SET MQSERVER command in the dos window and just connects locally. Even if I set the MQSERVER variable at the system level, the VB app still wants to act like a server app instead of the client app that it wants to be. On this pc with MQSeries Server installed, I can run amqsputc no problem. It respects the MQSERVER variable.

Why doesn't my VB app? I put a whole bunch of displays in the app and I see that that after the Queue Manager object is created, it's name is always the local one to the pc, not the remote one that the MQSERVER variable is telling it to go to. I leave the queue manager name blank on the connect, so that it picks up the default. When it runs on the client, it picks up the remote name always, since our remote boxes always have only 1 QM and it's the default.



_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
kolban
PostPosted: Sat Feb 23, 2002 7:51 am    Post subject: Reply with quote

Grand Master

Joined: 22 May 2001
Posts: 1072
Location: Fort Worth, TX, USA

See http://www.mqseries.net/phpBB/viewtopic.php?topic=348&forum=16&
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Tue Feb 26, 2002 5:54 am    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7717

I was able to get this to work. On the NT box that had a local queue manager, I went into the System Variables and added a variable called GMQ_MQ_LIB. For the value of this variable, I typed C:Program FilesMQSeriesbinmqic32.dll (your path to mqic32.dll may be different).

Now when I run the app, it acts like a client and respects the SET MQSERVER command.

When I am done running this client app, I remove the GMQ_MQ_LIB variable, as I am not sure how it may negativly impact my other MQ applications that rely on the local server.



_________________
Peter Potkay
MQSeries Certified Specialist

[ This Message was edited by: PeterPotkay on 2002-02-26 09:22 ]
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 Installation/Configuration Support » VB Client app is now on a server and now doesn't know its a
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.