Enterprise Java Beans (EJBs) are classes that encapsulate business functionality, each of a certain kind. Thus far this is the same characterization as we have for normal Java classes. EJBs, however, run in a container environment, which means the server adds system-level services to them, which includes lifecycle management (instantiate and destroy when and how), transactionality (building logical, atomic, rollback-enabled units of work), and security (which user can invoke which methods).
The EJB technology comprises session beans and message-driven beans . However, the latter will get ...