11.7. JDO integration with stateful session beans

Stateful session bean instances are dedicated to one client for a number of method invocations, and can maintain conversational state across these methods. Stateful session beans can also employ BMTs in order to keep a transaction open over such a series of invocations. The stateful session bean lifecycle is illustrated in Figure 11.2.

Figure 11.2. Stateful session bean lifecycle

The stateful session bean lifecycle is similar to that of the stateless session bean. Notable differences are that once in the method-ready state, it is assigned to a single client. The activate() and passivate() invocations ...

Get Java™ Data Objects 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.