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 Java / JMS » Thread-safe conditions in MQSeries

Post new topic  Reply to topic
 Thread-safe conditions in MQSeries « View previous topic :: View next topic » 
Author Message
javamangler
PostPosted: Tue Jan 15, 2002 7:33 am    Post subject: Reply with quote

Newbie

Joined: 14 Jan 2002
Posts: 2

Hello everyone. I have some questions about queue access with the MQSeries Java API. Can anyone tell me which operations are deemed thread-safe on a Queue? Assume that each thread has it's own session. Can I do simultaneous reads from a Queue without synchronizing my threads? If I can do this, do I have to do a browse to achieve this? What happens if I have 1 thread writing to the Queue while another thread is reading from it? Any input would be greatly appreciated. Thank you all for your time.
Back to top
View user's profile Send private message Visit poster's website
kolban
PostPosted: Wed Jan 16, 2002 8:45 pm    Post subject: Reply with quote

Grand Master

Joined: 22 May 2001
Posts: 1072
Location: Fort Worth, TX, USA

Are you planning on using the MQ Base Java APIs or the JMS APIs?
Back to top
View user's profile Send private message
javamangler
PostPosted: Thu Jan 17, 2002 7:05 am    Post subject: Reply with quote

Newbie

Joined: 14 Jan 2002
Posts: 2

Sorry, I should have put that in my original message. I want to use the MQ APIs instead of JMS (actually this has already been implemented, so I don't have a choice).
Back to top
View user's profile Send private message Visit poster's website
krishs
PostPosted: Mon Feb 11, 2002 7:25 am    Post subject: Reply with quote

Newbie

Joined: 03 Feb 2002
Posts: 8
Location: Chennai

I am having similar situation what hae you quoted in your first post.
I need to do MQGET and MQBROWSE using two threads simultaneously from a queue. I can only one at a time. How to control this? I am trying for my own thread synchronization. If you identify some solution, do post it here.

Thanx in advance,
Krishs


Quote:

On 2002-01-17 07:05, javamangler wrote:
Sorry, I should have put that in my original message. I want to use the MQ APIs instead of JMS (actually this has already been implemented, so I don't have a choice).
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Thread-safe conditions in MQSeries
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.