© Peter Späth 2019
P. SpäthBeginning Jakarta EEhttps://doi.org/10.1007/978-1-4842-5079-2_7

7. Modularization with EJBs

Peter Späth1 
(1)
Leipzig, Sachsen, Germany
 

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

Get Beginning Jakarta EE: Enterprise Edition for Java: From Novice to Professional now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.