Scalability and Performance Hints

Having completed our whirlwind tour of EJB design and development, it's time to discuss a few scalability and performance hints. Notice that most of these have to do with EJB design, not implementation. Thus, many aspects of efficiency with respect to EJBs can be effected at the very early stages of product development.

Prefer Message-Driven Beans over Session Beans

Messaging is a highly underrated, yet very efficient, method of remote communication. As I'll describe in more detail in Chapter 9, it enables a higher degree of parallelism because it prevents the caller from stalling while the callee is busy processing ...

Get Building Scalable and High-Performance Java™ Web Applications Using J2EE™ Technology now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.