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 » Access to multiple queues "simultaneously"

Post new topic  Reply to topic
 Access to multiple queues "simultaneously" « View previous topic :: View next topic » 
Author Message
bhagatsonali
PostPosted: Fri Aug 17, 2007 1:21 am    Post subject: Access to multiple queues "simultaneously" Reply with quote

Newbie

Joined: 16 Jul 2007
Posts: 4

hello all,

I am newbei in MQSeries development field.
I have installed WebSphere MQ server on one Computer and WebSphere MQ client on other.The OS is WINDOW for both.
I use MQSERVER envirnoment variable to define the communication type,port and channel.We are using Automation classes for ActiveX Control in our client application.
I am facing the problem that i can not access more than one queue of the same queue manager at he same time i.e receiving messages from the two queues of same queuemanager simultaneous.

Is defining MQSERVER parameter is sufficeint or i need to add to ohter parameter too.

Or

Is it the case that using this parameter we can access to only one queue at a time.
Or
There seems to be a problem with the application program regarding the Thread management for the API calls.


Thanks In Advance,
Sonali Bhagat
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri Aug 17, 2007 1:40 am    Post subject: Reply with quote

Grand High Poobah

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

For starters, the ActiveX control is depreciatied and shouldn't be used for new developments.

The MQSERVER variable as described in the Clients manual controls connection to a queue manager not a queue. Having established such a connection, you can open & use as many queues hosted by that queue manager as you like.

You can only have one get opperation pending at a time, i.e. you can't be waiting on 2 queues at the same time. You can subvert this using multiple threads, but you need to research the rules on using multiple threads. You're also not guaranteed to get 2 messages at the same time; delivery is not syncronised across queues.

Do a search in the forum - someone else was asking about this recently.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Aug 17, 2007 3:43 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You can only have one GET pending per connection.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri Aug 17, 2007 4:08 am    Post subject: Reply with quote

Grand High Poobah

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

And of course you can do two GET operations one after the other.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
zpat
PostPosted: Mon Aug 20, 2007 2:53 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

MQ will never deliver the same message to more than one MQGET request (browse excepted).

You can have thousands of MQ clients with an outstanding MQGET on the same queue (we do this all the time).

Typically multiple simultaneous GETs are used for load balancing (if unconditional) or getting a particular reply message (if get with correlid).
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 » Access to multiple queues "simultaneously"
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.