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 » Shared access not possible, reasons?

Post new topic  Reply to topic
 Shared access not possible, reasons? « View previous topic :: View next topic » 
Author Message
MarkusGlagla
PostPosted: Tue Jan 31, 2006 4:14 am    Post subject: Shared access not possible, reasons? Reply with quote

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
View user's profile Send private message
wschutz
PostPosted: Tue Jan 31, 2006 6:51 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail AIM Address
MarkusGlagla
PostPosted: Sun Feb 05, 2006 3:47 am    Post subject: Reply with quote

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
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 » Shared access not possible, reasons?
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.