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 IndexIBM MQ API SupportConnecting to Websphere MQ Client using TAB file in .NET

Post new topicReply to topic
Connecting to Websphere MQ Client using TAB file in .NET View previous topic :: View next topic
Author Message
Prem
PostPosted: Thu Jul 08, 2010 12:30 am Post subject: Connecting to Websphere MQ Client using TAB file in .NET Reply with quote

Newbie

Joined: 06 Jul 2010
Posts: 3
Location: India

Hi,
I have struggled a bit to find a clear answer to this topic. Although I found the way out, but still something is missing.

I was facing a situation where we had to establish a connection from .NET application with Websphere MQ Client using TAB files. This TAB file is used because you might choose to define connections to more than one server machine. Benefits:
1. You need a backup system.
2. You want to be able to move your queue managers without changing any application code.
3. You need to access multiple queue managers, and this requires the least resource.

The solution was:
Step 1: Set Environment variables
MQCHLLIB = <Path of the TAB file>
MQCHLTAB = <Name of the TAB file>
Step 2: Establish a connection with the queue.
queueManager = new MQQueueManager(QueueManagerName)

If I gave the QueueManagerName = *<QName> it connects successfully, but I try anything other than this it doesn’t. For instance QueueManagerName = <QName>, QueueManagerName = “*”,QueueManagerName = “” all of this fails.

In the “Websphere MQ Client” document Chapter 13, Page 125 (Site Restrictions: I cannot post links in my first post), you can see for different ‘definations’ it picks up the correct Queue Manager Name. This means if I specify QueueManagerName as “*” or “”, it should pick the correct Queue Manager from the tab file.

May be I am interpreting it wrongly, but if anyone has an apt solution or can put me on the correct path that would be helpful.
Back to top
View user's profile Send private message
Prem
PostPosted: Thu Jul 08, 2010 12:33 am Post subject: Connecting to Websphere MQ Client using TAB file in .NET Reply with quote

Newbie

Joined: 06 Jul 2010
Posts: 3
Location: India

Here is the link to the contents from “Websphere MQ Client” document Chapter 13, Page 125:
http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp?topic=/com.ibm.mq.csqzaf.doc/cs12720_.htm
Back to top
View user's profile Send private message
exerk
PostPosted: Thu Jul 08, 2010 1:29 am Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

Good attempt, and well done for trying to crack it yourself. You were close, but not quite

Have a look at THIS.
_________________
It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys.
Back to top
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexIBM MQ API SupportConnecting to Websphere MQ Client using TAB file in .NET
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.