In this chapter, we studied the different performance issues and configurations of the various types of EJBs. In WildFly, the default setup of SLSB isn't using a pool, and this may be adequate for some applications but certainly not for all. The use of SFSB needs to be analyzed to keep the passivation to a minimum, and the default passivation configuration is unlikely to fit a production scenario. For Singleton Session Beans, the default locking strategy should be scrutinized before entering a production environment.
Next, we will turn our focus on how to tune persistent content handling in a Java EE application stack.