Skip to Content
Java EE 8 Application Development
book

Java EE 8 Application Development

by David R. Heffelfinger
December 2017
Intermediate to advanced
372 pages
8h 46m
English
Packt Publishing
Content preview from Java EE 8 Application Development

Stateless and singleton session bean life cycles

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Java EE 8 Development with Eclipse

Java EE 8 Development with Eclipse

Ram Kulkarni
Beginning EJB in Java EE 8: Building Applications with Enterprise JavaBeans

Beginning EJB in Java EE 8: Building Applications with Enterprise JavaBeans

Jonathan Wetherbee, Massimo Nardone, Chirag Rathod, Raghu Kodali

Publisher Resources

ISBN: 9781788293679Supplemental Content