*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes EJB MDB doubt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "EJB MDB doubt" Watch "EJB MDB doubt" New topic
Author

EJB MDB doubt

Prasad Shindikar
Ranch Hand

Joined: Feb 18, 2007
Posts: 114
The container serializes calls to each message-driven bean instance. Most containers will
support many instances of a message-driven bean executing concurrently; however, each
instance sees only a serialized sequence of method calls. Therefore, a message-driven bean
DOES NOT have to be coded as reentrant.

what does it mean when said
MDBs should not be coded as reentrant
Umakanth Godavarthy
Ranch Hand

Joined: Nov 10, 2005
Posts: 37
"reentrant" means a multi-threaded environment where a method can be executed concurrently by different threads. This is not applicable to MDBs as everytime a message listener method is executed (or a timer callback) a new instance is picked up by the container from the pool.

Hope this answers.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: EJB MDB doubt
 
Similar Threads
EJB Specification doubt
HF Mock exam doubts
MDB-concurrency , serializing and reentrant?
Session Beans
Session Beans - Reenterant