|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
  |
|
Connecting to Websphere MQ Client using TAB file in .NET |
View previous topic :: View next topic |
Author |
Message
|
Prem |
Posted: Thu Jul 08, 2010 12:30 am Post subject: Connecting to Websphere MQ Client using TAB file in .NET |
|
|
 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 |
|
 |
Prem |
Posted: Thu Jul 08, 2010 12:33 am Post subject: Connecting to Websphere MQ Client using TAB file in .NET |
|
|
 Newbie
Joined: 06 Jul 2010 Posts: 3 Location: India
|
|
Back to top |
|
 |
exerk |
Posted: Thu Jul 08, 2010 1:29 am Post subject: |
|
|
 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 |
|
 |
|
|
  |
|
Page 1 of 1 |
|
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
|
|
|
|