O'Reilly logo

J2EE™ Applications and BEA™ WebLogic Server™ by Sandra L. Emerson, Rob Woollen, Michael Girdley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Message-Driven Beans and Concurrency

Like other EJB components, the EJB container handles concurrency for message-driven bean instances. Message-driven EJBs are not written with thread-safe code, and the EJB container never makes a re-entrant call into a bean instance. As with stateless session beans, message-driven bean instances are pooled in memory by the container. The weblogic-ejb-jar.xml deployment descriptor contains two parameters to control the pool size: <initial-beans-in-freepool> and <max-beans-in-freepool>. When the EJB is deployed, the container pre-allocates as many instances as specified in the initial-beans-in-freepool parameter. As messages arrive, this enables the server immediately to accept work without spending time creating ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required