User: patriot1burke
  Date: 01/06/14 20:41:07

  Modified:    src/main/org/jboss/ejb EntityContainer.java
  Log:
  Added an instance of TxEntityMap so that interested parties can find out
  what entities are associated with a given transaction.
  
  EntitySynchronizationInterceptor and InstanceSynchronization manage
  this instance.
  
  The EJB spec 2.0 reads.... 9.6.4
  
  "Before invoking the ejbFind<METHOD>(...) method,
  the container must first synchronize the state of any entity bean instances
  that are participating in the same transaction context as is used to execute
  the ejbFind<METHOD>(...) by invoking the ejbStore() method on those entity
   bean instances."
  
  Revision  Changes    Path
  1.41      +12 -1     jboss/src/main/org/jboss/ejb/EntityContainer.java
  
  Index: EntityContainer.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/ejb/EntityContainer.java,v
  retrieving revision 1.40
  retrieving revision 1.41
  diff -u -r1.40 -r1.41
  --- EntityContainer.java      2001/06/04 20:47:29     1.40
  +++ EntityContainer.java      2001/06/15 03:41:07     1.41
  @@ -39,7 +39,8 @@
   *   @author <a href="mailto:[EMAIL PROTECTED]";>Marc Fleury</a>
   *   @author <a href="mailto:[EMAIL PROTECTED]";>Sebastien Alborini</a>
   *   @author Daniel OConnor ([EMAIL PROTECTED])
  -*   @version $Revision: 1.40 $
  +*   @author <a href="[EMAIL PROTECTED]">Bill Burke</a>
  +*   @version $Revision: 1.41 $
   */
   public class EntityContainer
   extends Container
  @@ -74,6 +75,11 @@
      // This is the instancepool that is to be used
      protected InstancePool instancePool;
   
  +   // This provides a way to find the entities that are part of a given transaction
  +   // EntitySynchronizationInterceptor and InstanceSynchronization manage
  +   // this instance.
  +   protected TxEntityMap txEntityMap = new TxEntityMap();
  +
      // This is the first interceptor in the chain. The last interceptor must be 
provided by the container itself
      protected Interceptor interceptor;
   
  @@ -128,6 +134,11 @@
      public EntityPersistenceManager getPersistenceManager()
      {
         return persistenceManager;
  +   }
  +
  +   public TxEntityMap getTxEntityMap()
  +   {
  +      return txEntityMap;
      }
   
      public void setPersistenceManager(EntityPersistenceManager pm)
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to