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
posted 13 years ago
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.