O'Reilly logo

Java EE 7 Recipes: A Problem-Solution Approach by Josh Juneau

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 9

image

Enterprise JavaBeans

Enterprise JavaBeans were created in order to separate the view layers from the database access and business layers. EJBs are where all of the database (EntityManager) access and business logic should 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 are used to interact directly with the JSF 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 server container, which manages the bean ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required