Using access beans

Access beans are an IBM extension to the EJB programming model to make client programming simpler and to improve performance:

  • The code to access the home interface can be generated into a factory class. The home interface is retrieved automatically as soon as a client creates or finds a bean instance.

  • A data class can cache the attributes of an entity bean for fast access within a client. All or a subset of entity bean attributes are retrieved and cached at the client when the access bean is created or at the first attribute access. The client decides when data that has been changed is synchronized with the EJB container. This technique simplifies transaction management by the client.

The data class access bean is a data transfer ...

Get EJB 2.0 Development with WebSphere Studio Application Developer 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.