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 » MQCONN() returns 2002 (MQRC_ALREADY_CONNECTED) on AIX

Post new topic  Reply to topic
 MQCONN() returns 2002 (MQRC_ALREADY_CONNECTED) on AIX « View previous topic :: View next topic » 
Author Message
guogangli
PostPosted: Fri May 15, 2009 1:08 pm    Post subject: MQCONN() returns 2002 (MQRC_ALREADY_CONNECTED) on AIX Reply with quote

Novice

Joined: 02 Mar 2009
Posts: 15

Hi,

We are migrating our WMQ appls (in C++) from Solaris to AIX.

One of the WMQ server appls makes multiple MQCONN() calls to a local queue manager, with each MQCONN() call on its own thread. The appl works fine on Solaris.

When the same appl runs on AIX, the first MQCONN() call returns a 0, but the second MQCONN() call from a different thread returns 2002 (MQRC_ALREADY_CONNECTED).

dspmqver:
Name: WebSphere MQ
Version: 6.0.2.2
CMVC level: p600-202-070801
BuildType: IKAP - (Production)

Any ideas?

Thank you very much for your help.

Guogang Li
CSG Systems, Inc
Back to top
View user's profile Send private message
exerk
PostPosted: Sat May 16, 2009 12:46 pm    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

Please check which forum you are posting in - this looks more like a candidate for the General WebSphere MQ Support forum.
_________________
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
Vitor
PostPosted: Sun May 17, 2009 7:47 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Moved to more relevant forum
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Vitor
PostPosted: Sun May 17, 2009 7:55 am    Post subject: Re: MQCONN() returns 2002 (MQRC_ALREADY_CONNECTED) on AIX Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

guogangli wrote:
When the same appl runs on AIX, the first MQCONN() call returns a 0, but the second MQCONN() call from a different thread returns 2002 (MQRC_ALREADY_CONNECTED).


Clearly the threading model is working differently on the 2 OS. Have the apps been properly relinked for the new OS, with the right libraries and the right options

(Obvious question but I have seen it done; or not done!)
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Monk
PostPosted: Mon May 18, 2009 3:30 am    Post subject: Reply with quote

Master

Joined: 21 Apr 2007
Posts: 282

@guogangli

How did you compile you clients on aix?

did u use -lmqic or -lmqic_r

and yes like vitor mentioned , the threading models are different on solaris and aix..
_________________
Thimk
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 » MQCONN() returns 2002 (MQRC_ALREADY_CONNECTED) on AIX
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.