Handles

Handles in EJB provide a mechanism to store a reference to a remote home or a remote interface to a long-term persistent store and later re-acquire that reference back to the same home or remote object. Because handles only relate to remote objects, local clients are not exposed to handles and have no need for them.

Two types of handles are defined in the EJB 2.0 Specification. One is the javax.ejb.Handle interface and the other is javax.ejb.HomeHandle interface. You might wonder if the HomeHandle interface extends the Handle interface, but it doesn’t. In the same way that there is no direct relationship between a home and remote interface, a HomeHandle and a Handle are not directly related. Here is the single method signature for the ...

Get Special Edition Using Enterprise JavaBeans™ 2.0 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.