The bean
The idea of a bean is quite generic. Here, we are not talking about the concept of JavaBeans, with the getters and setters access method. Instead, we are talking about the concept of the bean as a web component or business component. In this scenario, we encounter several types of beans, such as Java classes in web and JEE-related beans, such as EJB beans and JSF-managed beans. There are even some third-party frameworks outside of the JEE specification (such as Spring) that have a different concept of the bean. The concept of a JEE bean is known as a managed bean, which is managed by a container that requires little intervention by the programmer and has a well-defined life cycle. As well as this, a managed bean can provide mechanisms ...
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.
Read now
Unlock full access