org.jboss.ejb.plugins
Class EntityMultiInstanceSynchronizationInterceptor
java.lang.Object
|
+--org.jboss.ejb.plugins.AbstractInterceptor
|
+--org.jboss.ejb.plugins.EntitySynchronizationInterceptor
|
+--org.jboss.ejb.plugins.EntityMultiInstanceSynchronizationInterceptor
- All Implemented Interfaces:
- ContainerPlugin, Interceptor, Service
- public class EntityMultiInstanceSynchronizationInterceptor
- extends EntitySynchronizationInterceptor
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.
- Version:
- $Revision: 1.1.4.4 $
Revisions:
2001/08/08: billb
- Initial revision
- Author:
- Bill Burke
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EntityMultiInstanceSynchronizationInterceptor
public EntityMultiInstanceSynchronizationInterceptor()
init
public void init()
throws java.lang.Exception
- Overrides:
init
in class EntitySynchronizationInterceptor
createSynchronization
protected javax.transaction.Synchronization createSynchronization(javax.transaction.Transaction tx,
EntityEnterpriseContext ctx)
- Overrides:
createSynchronization
in class EntitySynchronizationInterceptor
Copyright © 2000 The JBoss Organization. All Rights Reserved.