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 » jms threads

Post new topic  Reply to topic
 jms threads « View previous topic :: View next topic » 
Author Message
gavon stone
PostPosted: Wed Apr 13, 2005 8:12 am    Post subject: jms threads Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Wed Apr 13, 2005 8:24 am    Post subject: Reply with quote

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
View user's profile Send private message
gavon stone
PostPosted: Wed Apr 13, 2005 9:55 am    Post subject: jms threads Reply with quote

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
View user's profile Send private message
vennela
PostPosted: Wed Apr 13, 2005 11:01 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
jefflowrey
PostPosted: Wed Apr 13, 2005 11:05 am    Post subject: Reply with quote

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

MQSeries.net Forum Index » IBM MQ Java / JMS » jms threads
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.