|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
jms threads |
« View previous topic :: View next topic » |
Author |
Message
|
gavon stone |
Posted: Wed Apr 13, 2005 8:12 am Post subject: jms threads |
|
|
Novice
Joined: 09 Mar 2005 Posts: 16
|
I am in the process of writing a multi threaded application using jms and websphere MQ 5.3 which is going to consist of different threads trying to access a queue simultaenously. I would like to know whether I have to worry about locking the queue or does websphere MQ have a built in mechanism that would only allow one thread to access the queue at any point in time.
Thanks |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Apr 13, 2005 8:24 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Are you running in a J2EE container, or in a standalone application using JMS?
Are you getting messages, or putting messages, or both? _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
gavon stone |
Posted: Wed Apr 13, 2005 9:55 am Post subject: jms threads |
|
|
Novice
Joined: 09 Mar 2005 Posts: 16
|
I am using a stand alone jms program and all threads do puts and gets. |
|
Back to top |
|
 |
vennela |
Posted: Wed Apr 13, 2005 11:01 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
AFAIK, one queue can be accessed by multiple applications (I think threads too) and one message will be given to only one application. |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Apr 13, 2005 11:05 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Okay, if you're doing gets from a standalone app, then I won't recommend you use MDBs.
Yes, you should be fine to put and get from queues from different threads, provided you make sure to use a shared option on the open (in the JMS queue destination definition). _________________ I am *not* the model of the modern major general. |
|
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
|
|
|
|