Abstract
The previous chapter showed how to implement persistent objects using JPA and how to query them with JPQL. Entities can have methods to validate their attributes, but they are not made to represent complex tasks, which often require an interaction with other components (other persistent objects, external services, etc.). The persistence layer is not the appropriate layer for business processing. Similarly, the user interface should not perform business logic, especially when there are multiple interfaces (Web, Swing, portable devices, etc.). To separate the persistence layer from the presentation layer, to implement business logic, to add transaction management and security, applications need a business layer. In Java EE, we implement this layer using Enterprise JavaBeans (EJBs).
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2013 Antonio Goncalves
About this chapter
Cite this chapter
Goncalves, A. (2013). Enterprise JavaBeans. In: Beginning Java EE 7. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-4627-5_7
Download citation
DOI: https://doi.org/10.1007/978-1-4302-4627-5_7
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4302-4626-8
Online ISBN: 978-1-4302-4627-5
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)