(alex@jboss.org) The instance interceptors role is to acquire a context representing the target object from the cache.
(alex@jboss.org) 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.
Use ProxyCompiler or Jakarta BCEL instead.
this class was useful only for Instance Per Transaction containers and was used to check whether the instance is associated with the tx. There is org.jboss.ejb.plugins.PerTxEntityInstanceCache which is a per tx implementation of org.jboss.ejb.EntityCache which should be used with IPT containers. (alex@jboss.org) This class provides a way to find out what entities of a certain type that are contained in within a transaction. It is attached to a specific instance of a container. This class interfaces with the static GlobalTxEntityMap. EntitySynchronizationInterceptor registers tx/entity pairs through this class. Used in EntitySynchronizationInterceptor.
Use the other constructor with a specific Message Bundle for your own verification logic!
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.