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 » got error 2042 in Zlinux Suse9

Post new topic  Reply to topic
 got error 2042 in Zlinux Suse9 « View previous topic :: View next topic » 
Author Message
adder
PostPosted: Wed Feb 15, 2006 10:54 pm    Post subject: got error 2042 in Zlinux Suse9 Reply with quote

Apprentice

Joined: 06 Dec 2005
Posts: 43

my program have two threads connect to same queue manager , the behavour is send message to queue and get message from the queue, then send a message to another queue. when second thread open queue to get message, a error got 2042

2042 0x000007fa MQRC_OBJECT_IN_USE

but when two threads open queue to put message at same time, no error happen.

the same program can run on linux redhat4 ok.
Summarize:
1. run on xlinux ok, but error got on zlinux
2. when two threads open queue for put message ok, but error got when get message

thanks.
Back to top
View user's profile Send private message MSN Messenger
adder
PostPosted: Wed Feb 15, 2006 10:59 pm    Post subject: Reply with quote

Apprentice

Joined: 06 Dec 2005
Posts: 43

I am using C++ API, for put message , I open queue using options
open_queue(MQOO_INPUT_SHARED+MQOO_FAIL_IF_QUIESCING)
Back to top
View user's profile Send private message MSN Messenger
mvic
PostPosted: Thu Feb 16, 2006 1:48 am    Post subject: Re: got error 2042 in Zlinux Suse9 Reply with quote

Jedi

Joined: 09 Mar 2004
Posts: 2080

Is the queue shareable?
Back to top
View user's profile Send private message
wschutz
PostPosted: Thu Feb 16, 2006 2:57 am    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

Its always interesting how these problems tend to run in groups: ( from two weeks ago)
http://www.mqseries.net/phpBB2/viewtopic.php?t=26905&highlight=defsopt
So yes, as mvic asks, its the queue attribute SHARE set?
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
adder
PostPosted: Thu Feb 16, 2006 9:54 pm    Post subject: Reply with quote

Apprentice

Joined: 06 Dec 2005
Posts: 43

thanks for mvic and wschutz, I change attribute of queue to shareable, then problem solved.
Back to top
View user's profile Send private message MSN Messenger
adder
PostPosted: Mon Feb 20, 2006 7:29 pm    Post subject: Reply with quote

Apprentice

Joined: 06 Dec 2005
Posts: 43

hi, still have a question about shareable.
I use MQ explorer to change queue's attribute to shareable, but I want to know how to change this attribute through mqsc command, thanks!
Back to top
View user's profile Send private message MSN Messenger
Biju
PostPosted: Mon Feb 20, 2006 8:22 pm    Post subject: Reply with quote

Acolyte

Joined: 03 Oct 2005
Posts: 71

Hi,
RUNMQSC QM

ALTER QLOCAL(<QNAME>) SHARE

THIS SHOULD DO THE TRICK
Back to top
View user's profile Send private message Yahoo Messenger
adder
PostPosted: Wed Feb 22, 2006 12:11 am    Post subject: Reply with quote

Apprentice

Joined: 06 Dec 2005
Posts: 43

thanks Biju
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » got error 2042 in Zlinux Suse9
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.