O'Reilly logo

Java EE 7 Performance Tuning and Optimization by Osama Oransa

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

The important Java EE concurrency features

In addition to the concurrent resources and concurrency APIs, Java EE has many concurrency features for asynchronous invocations. We summarize them as follows:

  • Servlet/filter asynchronous processing
  • Nonblocking I/O APIs for asynchronous servlet/filter
  • EJB features, such as singleton EJB, calling asynchronous session bean methods, and sending asynchronous JMS messages

It is important that we recognize all these features so that we can recommend the optimal solutions when faced with performance issues in long processing components.

The SingleThreadModel interface

When Servlet implements the SingleThreadModel interface. It is guaranteed that the container will let only one thread at a time be executed in a given ...

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