|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Shared access not possible, reasons? |
« View previous topic :: View next topic » |
Author |
Message
|
MarkusGlagla |
Posted: Tue Jan 31, 2006 4:14 am Post subject: Shared access not possible, reasons? |
|
|
Newbie
Joined: 26 Jul 2005 Posts: 5
|
Hi,
I have a problem in opening a queue simultaneously from different threads. I am connected to a queuemanager on a z/os machine, my client is on Windows using the .NET API. Each thread of my client is holding its own queue manager connection (as it is said in the .NET programming documentation under the chapter multithreading). Now in each thread I am trying to make a GET with wait interval on a local queue, the queue is opened using the MQC.MQOO_INPUT_SHARED option. For the first thread doing this, everything is ok. When the next thread ist trying it while the first is still waiting, i get an Exception MQRC_OBJECT_IN_USE(2042).
The only reason for this I could imagine is, that the queues are configured as non-shareable. The documentation says, in this cases (non-shareable queue opened with MQOO_INPUT_SHARED) the queue is opened exclusively (instead of throwing an exception).
I can't check this for myself but the administrations guy says, all queues are marked sharable. But when I check the queue.Shareability Attribute of my queue (after opening it from the first thread), it says 0 (=MQC.MQQA_NOT_SHAREABLE).
Any ideas why this can happen? Are there any other situations or reasons, why my get options are silently ignored?
Any help will be appreciated. |
|
Back to top |
|
 |
wschutz |
Posted: Tue Jan 31, 2006 6:51 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
Perhaps your admin is confusing DEFSOPT(SHARED) with SHARE on the queue attributes? It seems like the queue is defined as NOSHARE. _________________ -wayne |
|
Back to top |
|
 |
MarkusGlagla |
Posted: Sun Feb 05, 2006 3:47 am Post subject: |
|
|
Newbie
Joined: 26 Jul 2005 Posts: 5
|
Hi Wayne,
I think you were right. After some discussion they changed the queue configuration so shared access is now possible. |
|
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
|
|
|
|