© Josh Juneau 2018
Josh JuneauJava EE 8 Recipeshttps://doi.org/10.1007/978-1-4842-3594-2_9

9. Enterprise JavaBeans

Josh Juneau1 
(1)
Hinckley, Illinois, USA
 

Enterprise JavaBeans were created in order to separate the view layer from the database access and business layers. EJBs are where all of the database (EntityManager) access and business logic can take place within a Java EE application, and they have become significantly easier to use over the past few releases. EJBs are used to coordinate database tasks with entities, and JSF managed beans (aka, controller classes) are used to interact directly with the JSF views or web pages. Managed beans are used to provide a façade between the view layer and the business layer.

EJBs are deployed to an application ...

Get Java EE 8 Recipes: A Problem-Solution Approach 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.