| |
|
| java.lang.Object org.jboss.ejb.plugins.AbstractInterceptor org.jboss.ejb.plugins.EntitySynchronizationInterceptor
All known Subclasses: org.jboss.ejb.plugins.EntityMultiInstanceSynchronizationInterceptor,
EntitySynchronizationInterceptor | public class EntitySynchronizationInterceptor extends AbstractInterceptor (Code) | | The role of this interceptor is to synchronize the state of the cache with
the underlying storage. It does this with the ejbLoad and ejbStore
semantics of the EJB specification. In the presence of a transaction this
is triggered by transaction demarcation. It registers a callback with the
underlying transaction monitor through the JTA interfaces. If there is no
transaction the policy is to store state upon returning from invocation.
The synchronization polices A,B,C of the specification are taken care of
here.
WARNING: critical code, get approval from senior developers
before changing.
author: Marc Fleury author: Scott Stark author: Bill Burke version: $Revision: 57209 $ |
Inner Class :protected class InstanceSynchronization implements Synchronization | |
Inner Class :class ValidContextsRefresher extends TimerTask | |
commitOption | protected int commitOption(Code) | | The current commit option.
|
optionDRefreshRate | protected long optionDRefreshRate(Code) | | The refresh rate for commit option d
|
register | protected void register(EntityEnterpriseContext ctx, Transaction tx)(Code) | | Register a transaction synchronization callback with a context.
|
start | public void start()(Code) | | |
|
|
|