O'Reilly logo

Mastering NetBeans by David Salter

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

Creating a session bean façade for entity classes

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

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