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 » Handle sharing difference between CSD05 and MA7P

Post new topic  Reply to topic
 Handle sharing difference between CSD05 and MA7P « View previous topic :: View next topic » 
Author Message
mvcg
PostPosted: Fri Nov 07, 2003 10:41 am    Post subject: Handle sharing difference between CSD05 and MA7P Reply with quote

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
View user's profile Send private message MSN Messenger
mvcg
PostPosted: Fri Nov 07, 2003 12:10 pm    Post subject: A little addendum Reply with quote

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
View user's profile Send private message MSN Messenger
JasonE
PostPosted: Wed Nov 12, 2003 3:27 am    Post subject: Reply with quote

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
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 » Handle sharing difference between CSD05 and MA7P
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.