|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Handle sharing difference between CSD05 and MA7P |
« View previous topic :: View next topic » |
Author |
Message
|
mvcg |
Posted: Fri Nov 07, 2003 10:41 am Post subject: Handle sharing difference between CSD05 and MA7P |
|
|
Novice
Joined: 02 Jul 2003 Posts: 11
|
Hi All:
I have a multithreaded application that used to work under MA7P. Now after upgrading to CSD05 (with .NET support) I get a Reason Code 2018 - MQRC_HCONN_ERROR when accessing the MQQueueManager instance across threads.
Per IBM support, using MA7P to open a QueueManager, I used:
qm= new MQQueueManager(this.qmName, MQC.MQCNO_HANDLE_SHARE_NO_BLOCK);
and it worked just fine. The open option allowed sharing the HCONN across threads.
Now that doesn't work and I consistently receive the 2018 Reason Code. For completeness, I've tried the other MQCNO options of:
MQC.MQCNO_HANDLE_SHARE_BLOCK
MQC.MQCNO_HANDLE_SHARE_NONE
all to no avail.
System Info:
Windows 2000 SP4
MQSeries 5.3 (CSD05)
.NET Framework 1.1
Any help is greatly appreciated.
-Mark |
|
Back to top |
|
 |
mvcg |
Posted: Fri Nov 07, 2003 12:10 pm Post subject: A little addendum |
|
|
Novice
Joined: 02 Jul 2003 Posts: 11
|
It appears that I'm getting the 2018 error even when the application isn't multithreaded. About as straight-forward as it gets...
In the consttuctor I create a new MQQueueManager (qMgr) instance, opening a queue manager. I use AccessQueue off qMgr to get a reference to a queue. Now, when I issue qMgr.Begin(), an MQException is thrown with ReasonCode 2018.
This all worked prior to installed CSD05.
Am I missing something?
Thanks,
-Mark |
|
Back to top |
|
 |
JasonE |
Posted: Wed Nov 12, 2003 3:27 am Post subject: |
|
|
Grand Master
Joined: 03 Nov 2003 Posts: 1220 Location: Hursley
|
Do the dotnet samples work for you (shipped with csd05)? Can you tell me the modifications to get the samples to fail?
Have u recompiled and relinked against the csd05 dot net dll, and registered it appropriately? What environment is your dot net pgm running under, is it a simple command line app (client or server?).
I suspect I would need to see a trace to help, but if you can tell me how to reproduce I'll take a quick look. If you are happy to trace, send me a personal message on here and I'll give u my email addr. |
|
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
|
|
|
|