In the previous section, we saw how we can use NetBeans to help us create business methods within EJBs and easily invoke EJB from client applications.
In all but the most simple application, however, we usually have a database component and a graph of database objects modeled with the
@Entity annotation within our application.
Since one of the benefits of EJBs is that they offer transactional support, EJBs make a good candidate for a session façade for entity classes. A session façade is a design pattern that abstracts the implementation of methods away from callers in order to decouple business objects from callers. In this instance, NetBeans can create a session façade that abstracts away all of ...