|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Thread-safe conditions in MQSeries |
« View previous topic :: View next topic » |
Author |
Message
|
javamangler |
Posted: Tue Jan 15, 2002 7:33 am Post subject: |
|
|
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 |
|
 |
kolban |
Posted: Wed Jan 16, 2002 8:45 pm Post subject: |
|
|
 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 |
|
 |
javamangler |
Posted: Thu Jan 17, 2002 7:05 am Post subject: |
|
|
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 |
|
 |
krishs |
Posted: Mon Feb 11, 2002 7:25 am Post subject: |
|
|
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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|