In this chapter, we have covered two core middleware services: EJB and JMS service.
With proper tuning, you can greatly improve the performance of your stateless and stateful session beans.
The two elements you can use to fine tune performance of stateless beans (SLSB) are pool size and locking strategy.
The optimal maximum size can be determined by inspecting the value of
concurrentCallsattributes from the component statistics.
Locking strategy can be chosen between
StrictMaxPool. The default
ThreaLocalPoolstrategy delivers better throughput because it uses Thread local variables instead of synchronization.
StrictMaxPoolcan be used to acquire an exact control over the maximum number of concurrent EJB instances.
Stateful session beans (SFSBs) have higher CPU and memory requirements depending on the size of non-transient Objects contained in them and on the time span of the Session. If you keep them short, the performance of SFSBs can be assimilated to...