|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
MQGET MQPUT Race Condition |
« View previous topic :: View next topic » |
Author |
Message
|
mqjeff |
Posted: Tue Dec 15, 2009 12:41 pm Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
rockdale wrote: |
Can I use two MQCONNX in a single thread?
Any overhead about open 2 connections? |
Generally, no, to both.
rockdale wrote: |
If I use MQGET with WAIT,
Vitor wrote: |
Yes, the MQGet will block the thread until the wait expires. |
, does it block AST too? |
No idea. probably easiest for you to test. |
|
Back to top |
|
 |
Vitor |
Posted: Tue Dec 15, 2009 2:50 pm Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
mqjeff wrote: |
rockdale wrote: |
If I use MQGET with WAIT,
Vitor wrote: |
Yes, the MQGet will block the thread until the wait expires. |
, does it block AST too? |
No idea. probably easiest for you to test. |
 _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Dec 15, 2009 10:20 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20757 Location: LI,NY
|
Depending on what you are really trying to do, and if it makes sense you could end up splitting your application in 2
- app1 acquires an MQ connection and does MQGET with wait (1 min) then sends to AST
- app2 acquires an MQ connection waits for an interrupt from AST and does the MQPUT.
Now if you need to be able to somehow correlate the MQGet and the MQPut you may need to run the 2 threads in the same app with some kind of interthread communication...
From what you said it does not appear that the AST communication would be a reply to the AST send... otherwise as Jeff stated all could happen in a single thread but for speed and throughput a pool would be advisable.
Have fun experimenting  _________________ MQ & Broker admin |
|
Back to top |
|
 |
|
|
|
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
|
|
|
|