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 » MQGET MQPUT Race Condition

Post new topic  Reply to topic Goto page Previous  1, 2
 MQGET MQPUT Race Condition « View previous topic :: View next topic » 
Author Message
mqjeff
PostPosted: Tue Dec 15, 2009 12:41 pm    Post subject: Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Tue Dec 15, 2009 2:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Tue Dec 15, 2009 10:20 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum Index » IBM MQ API Support » MQGET MQPUT Race Condition
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.