Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

process messages concurrently?

 
sonali rao
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pg 444 of HF EJB book says that in case of MDB "Multiple beans of the same type can process messages concurrently."
Is this possible in the case of Stateless Session beans and Entity beans?
 
Reid M. Pinchback
Ranch Hand
Posts: 775
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Note that the HFE statement isn't saying that 1 particular MDB instance processes messages concurrently. It is saying that the container can use multiple instances of the same type to process multiple messages. Any 1 instance is only handling one message at a time.
Same thing is true for the other bean types. Bean instance use is thread-safe. The container can use however many instances it wants (or has been configured to use), but each instance is only serving one request at a time.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic