Both EJB and JavaBean use RMI as their communication mechanism.
Both EJB and JavaBean can be of container-managed and bean-managed persistance types.
Both JavaBeans and EJBs are included in the JDK 1.1 and higher.
Both EJB and JavaBean can store their properties in the database.
EJB requires EJB container for its operation but JavaBean does not.
EJB must inherit from a JavaBean.
|