• Post Reply Bookmark Topic Watch Topic
  • New Topic

is MDB Muti-threaded

 
Mohammed Eesa
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a doubt whether Message-driven beans may be single-threaded or multi-threaded.
 
Dogra
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is upto the Container.
There is no Specification given in EJB2.0
 
Dilip Gamage
Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I accept with Dogra.
But I could remember the spec MDB should be NON-REENTRANT It is responsibilty of Bean provider. (session beans as same).

Entity beans can be Both REENTRANT or NON- REENTRANT

REENTRANT- means Multiple Thread activity
NON-REENTRANT means Single Thread activity.

If you asking regarding to the exam.
It Should be single thread .. PLS refer MSG bean section of the Spec.
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!