December 2017
Intermediate to advanced
372 pages
8h 46m
English
A stateless or singleton session bean life cycle contains only the Does Not Exist and Ready states:

Stateless and singleton session beans are never passivated. A stateless or singleton session bean's methods can be decorated with the @PostConstruct and the @PreDestroy annotations. Just like in stateful session beans, any methods decorated with the @PostConstruct annotation will be executed when the session bean goes from the Does Not Exist to the Ready State, and any methods decorated with the @PreDestroy annotation will be executed when a stateless session bean goes from the Ready state to ...