EJB Stands For
EJB Stands For
Types
EJB is primarily divided into three categories; following table lists their names with
brief descriptions −
Session Bean
1 Session bean stores data of a particular user for a single session. It can
be stateful or stateless. It is less resource intensive as compared to entity bean.
Session bean gets destroyed as soon as user session terminates.
2 Entity Bean
Entity beans represent persistent data storage. User data can be saved to
database via entity beans and later on can be retrieved from the database in the
entity bean.