Chapter 28: Configuring Persistence for Stateful Session Components
To use persistent state management, a stateful component must be an EJB stateful session bean or a component of another type that uses the control interface CtsComponents::ObjectControl. (See “Configuring a control interface”.)
You can manage persistence using these techniques:
This model can be used only in EJB stateful session Beans. To save persistent state, the state accessor methods in the component skeleton serialize the component class instance and saves the binary data to the database. To restore state, the saved data is deserialized.
Use this model for non-EJB components. In this model, you define a state datatype in IDL or Java and implement component methods to receive state data and return state data. The server calls your state access methods, and manages interaction with the database.
|Copyright © 2005. Sybase Inc. All rights reserved.|