简体   繁体   中英

In EJB conatainer, how to manage MDB, Will it create one thread for one MDB?

MDB has to waiting for message to arraive, so it must to do something "waiting" then block the running thread.

so, In EJB conatainer, how to manage MDB, Will it create one thread for one MDB?

Every EJB and MDB is pooled, for consuming messages is still valid:

... JMS messages are processed concurrently. That is, although each bean instance handles a message at a time, the EJB container takes care of creating enough bean instances to handle the message load at a given moment. In WebLogic you can set the initial number and max number of bean instances created by the container. For more information, see the @MessageDriven Annotation.

Source: http://docs.oracle.com/cd/E11035_01/workshop102/ejb/messagedriven/conGettingStartedWithMDBs.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM