Author |
Message
|
bhagatsonali |
Posted: Fri Aug 17, 2007 1:21 am Post subject: Access to multiple queues "simultaneously" |
|
|
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 |
|
 |
Vitor |
Posted: Fri Aug 17, 2007 1:40 am Post subject: |
|
|
 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 |
|
 |
jefflowrey |
Posted: Fri Aug 17, 2007 3:43 am Post subject: |
|
|
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 |
|
 |
Vitor |
Posted: Fri Aug 17, 2007 4:08 am Post subject: |
|
|
 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 |
|
 |
zpat |
Posted: Mon Aug 20, 2007 2:53 am Post subject: |
|
|
 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 |
|
 |
|