Meaningless Drivel is fun!
The moose likes EJB and other Java EE Technologies and the fly likes JMS and multithreading issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "JMS and multithreading issue" Watch "JMS and multithreading issue" New topic

JMS and multithreading issue

Mayank Mishra

Joined: Oct 20, 2004
Posts: 5
Can I create multiple threads,all being subscribers to a SINGLE TOPIC and sharing a SINGLE JMS SESSION?

Valentin Tanase
Ranch Hand

Joined: Feb 17, 2005
Posts: 704
Hi Mayank,

In theory you can, but your app will be responsible to synchronize the data access. In practice... you better stay away.

I think, therefore I exist -- Rene Descartes
I agree. Here's the link:
subject: JMS and multithreading issue
It's not a secret anymore!