Using Multithreading on Enterprise Context

Threading is a common issue in most software projects, no matter what language or technology is involved. With regard to enterprise applications, threading is even more important and, sometimes, harder.

A single mistake in a thread can affect the whole system, or even the whole infrastructure. Think about resources that are never released, memory consumption that never stops increasing, and so on.

The Jakarta EE environment has some great features for dealing with these and plenty of other challenges, and this chapter will show you some of them.

This chapter covers the following recipes: