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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.