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 » getting messages multi threaded

Post new topic  Reply to topic
 getting messages multi threaded « View previous topic :: View next topic » 
Author Message
alperb
PostPosted: Thu Mar 24, 2005 12:19 am    Post subject: getting messages multi threaded Reply with quote

Apprentice

Joined: 01 Jun 2004
Posts: 25

If I get messages from the same queue with multiple thread simultaneously,
do I need to use a syncronization object or does MQ handle this at API level?
Back to top
View user's profile Send private message
kman
PostPosted: Thu Mar 24, 2005 3:33 am    Post subject: Reply with quote

Partisan

Joined: 21 Jan 2003
Posts: 309
Location: Kuala Lumpur, Malaysia

only one thread for one message. No multiple threads getting the same message. Otherwise, raise a PMR.
Back to top
View user's profile Send private message Yahoo Messenger
alperb
PostPosted: Thu Mar 24, 2005 5:03 am    Post subject: Reply with quote

Apprentice

Joined: 01 Jun 2004
Posts: 25

i mean one thread per message but multiple threads per queue.
as one thread grabs a message the other thread grabs the other.
do i need to syncronize GETMESSAGE function or can 10 threads check the queue for messages simultaneously?
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Mar 24, 2005 5:05 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

you don't need to use syncpoint to handle this. Nor do you need to do extra work to synchronize your threads.

MQ will handle it for you.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
malammik
PostPosted: Thu Mar 24, 2005 10:44 am    Post subject: Reply with quote

Partisan

Joined: 27 Jan 2005
Posts: 397
Location: Philadelphia, PA

Each thread has to establish its own mq connection, I think.
_________________
Mikhail Malamud
http://www.netflexity.com
http://groups.google.com/group/qflex
Back to top
View user's profile Send private message Visit poster's website AIM Address
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » getting messages multi threaded
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.