Improving EJB Performance

You have already seen some of the important techniques for improving EJB performance. If you reduce the number of interactions between the client and the server, your application should speed up a great deal.

Some of the other areas where you can improve performance are

  • Increased entity bean and session bean caching

  • Database connection pooling

  • Faster database interface libraries

  • An optimized local call mechanism (one that doesn't use marshalling)

  • Data caching

Most of these features should be available in a commercial EJB container (and in several excellent open-source ones, for that matter). One of the most important features, one that isn't as common in EJB containers, is data caching.

You might need a commercial CMP engine ...

Get Special Edition Using Java™ 2 Enterprise Edition 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.