Chapter 29 Managing Persistent Component State
Storage components
A storage component read and writes component state information
from a remote database server. If your component uses automatic
persistence, Java serialization, or component-managed persistence
with an implementation that delegates to Jaguar's built-in
storage component, you must specify the storage component used to
interact with the persistent data store. The storage component uses
the connection cache and database table identified on the Persistence
tab in the Component Properties dialog box.
The storage component options are:
- CtsComponents/JdbcStorage Uses a JDBC connection cache to provide persistent storage
of component state. This component has the Requires transaction
attribute. The component's state is saved in the context
of any existing transaction associated with the component.
- CtsComponents/JdbcStorageReqNew A copy of the CtsComponents/JDBCStorage component
that has the RequiresNew transaction attribute. The component's
state is saved using a separate transaction from that used to manage
any database work performed by the component.
- A custom storage component A custom storage component, specified as package/component,
where package and component are the package
and component names, respectively, as displayed in Jaguar Manager.
The package must be installed on all servers where your component
is installed.
Customers and partners can implement custom storage components. The
component must implement the CtsComponents::Storage interface
and must have the Bind Object option enabled on the Instances tab.
Due to the thread-safe instance requirement for the Bind Object
option, only C++ and Java are suitable for coding
storage components.
Copyright © 2000 Sybase, Inc. All rights reserved.
|
|