O'Reilly logo

Java™ Oracle® Database Development by David J. Gallardo

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

Session Beans, Value Objects, and Data Access Objects

In this and in the sections that follow, we'll take a look at a session bean and an entity bean, and see how they both can be used for accessing information in a database. We'll also examine how other objects—value objects and data access objects—can help improve performance and reduce complexity.

Value Objects

One of the potential problems of using a remote object to perform database access is that EJBs often have getter and setter methods for each of their attributes. If these method calls are local, the overhead may be acceptable, but if it's over a network, this can generate a lot of network traffic. One way around this problem is to use a value object to encapsulate all the data and send ...

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