Performance Testing Your Beans

As already indicated, there’s a difference between stress testing and performance testing; however, they usually are connected because one usually can have an impact on the other. Performance testing deals with areas of an application that are sluggish, even with a single user. Better coding methods or algorithms usually fix the problems you find when you do performance testing. For example, you might use an Object[] and a for loop to iterate through a finite collection, rather than an Iterator or Enumeration.

After you’ve identified the performance bottlenecks, manual code reviews usually are necessary to spot the causes of the problems. In some cases, you might find that you can change the way the code is written ...

Get Special Edition Using Enterprise JavaBeans™ 2.0 now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.