Author |
Message
|
adder |
Posted: Wed Feb 15, 2006 10:54 pm Post subject: got error 2042 in Zlinux Suse9 |
|
|
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 |
|
 |
adder |
Posted: Wed Feb 15, 2006 10:59 pm Post subject: |
|
|
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 |
|
 |
mvic |
Posted: Thu Feb 16, 2006 1:48 am Post subject: Re: got error 2042 in Zlinux Suse9 |
|
|
 Jedi
Joined: 09 Mar 2004 Posts: 2080
|
|
Back to top |
|
 |
wschutz |
Posted: Thu Feb 16, 2006 2:57 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
|
Back to top |
|
 |
adder |
Posted: Thu Feb 16, 2006 9:54 pm Post subject: |
|
|
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 |
|
 |
adder |
Posted: Mon Feb 20, 2006 7:29 pm Post subject: |
|
|
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 |
|
 |
Biju |
Posted: Mon Feb 20, 2006 8:22 pm Post subject: |
|
|
 Acolyte
Joined: 03 Oct 2005 Posts: 71
|
Hi,
RUNMQSC QM
ALTER QLOCAL(<QNAME>) SHARE
THIS SHOULD DO THE TRICK  |
|
Back to top |
|
 |
adder |
Posted: Wed Feb 22, 2006 12:11 am Post subject: |
|
|
Apprentice
Joined: 06 Dec 2005 Posts: 43
|
|
Back to top |
|
 |
|