User: mnf999  
  Date: 01/08/01 11:19:10

  Modified:    src/main/org/jboss/ejb/plugins BMPPersistenceManager.java
                        CMPPersistenceManager.java
  Log:
  the insertion in cache is done in the instance interceptor
  
  Revision  Changes    Path
  1.27      +7 -6      jboss/src/main/org/jboss/ejb/plugins/BMPPersistenceManager.java
  
  Index: BMPPersistenceManager.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jboss/src/main/org/jboss/ejb/plugins/BMPPersistenceManager.java,v
  retrieving revision 1.26
  retrieving revision 1.27
  diff -u -r1.26 -r1.27
  --- BMPPersistenceManager.java        2001/07/20 20:07:15     1.26
  +++ BMPPersistenceManager.java        2001/08/01 18:19:10     1.27
  @@ -36,17 +36,21 @@
   /**
   *   <description>
   *
  -*   @see <related>
  -*   @author <a href="mailto:[EMAIL PROTECTED]";>Rickard �berg</a>
  +*  @see <related>
  +*  @author <a href="mailto:[EMAIL PROTECTED]";>Rickard �berg</a>
   *  @author <a href="mailto:[EMAIL PROTECTED]";>Marc Fleury</a>
   *  @author <a href="mailto:[EMAIL PROTECTED]";>Andreas Schaefer</a>
  -*   @version $Revision: 1.26 $
  +*  @version $Revision: 1.27 $
   *
   *  <p><b>Revisions:</b>
   *  <p><b>20010709 andreas schaefer:</b>
   *  <ul>
   *  <li>- Added statistics gathering
   *  </ul>
  +*  <p><b>20010801 marc fleury:</b>
  +*  <ul>
  +*  <li>- insertion in cache upon create in now done in the instance interceptor
  +*  </ul>
   */
   public class BMPPersistenceManager
   implements EntityPersistenceManager
  @@ -207,9 +211,6 @@
      
            // Give it to the context
            ctx.setCacheKey(cacheKey);
  -   
  -         // Insert in cache, it is now safe
  -         con.getInstanceCache().insert(ctx);
      
            // Create EJBObject
              // Create EJBObject
  
  
  
  1.28      +2 -5      jboss/src/main/org/jboss/ejb/plugins/CMPPersistenceManager.java
  
  Index: CMPPersistenceManager.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jboss/src/main/org/jboss/ejb/plugins/CMPPersistenceManager.java,v
  retrieving revision 1.27
  retrieving revision 1.28
  diff -u -r1.27 -r1.28
  --- CMPPersistenceManager.java        2001/07/20 20:07:15     1.27
  +++ CMPPersistenceManager.java        2001/08/01 18:19:10     1.28
  @@ -53,7 +53,7 @@
   *   @author <a href="mailto:[EMAIL PROTECTED]";>Dan Christopherson</a>
   *   @author <a href="mailto:[EMAIL PROTECTED]";>Bill Burke</a>
   *   @author <a href="mailto:[EMAIL PROTECTED]";>Andreas Schaefer</a>
  -*   @version $Revision: 1.27 $
  +*   @version $Revision: 1.28 $
   *
   *   Revisions:
   *   20010621 Bill Burke: removed loadEntities call because CMP read-ahead is now
  @@ -225,10 +225,7 @@
                Object cacheKey = ((EntityCache) 
con.getInstanceCache()).createCacheKey( id );
                
                // Give it to the context
  -             ctx.setCacheKey(cacheKey);
  -             
  -             // insert instance in cache, it is safe
  -             con.getInstanceCache().insert(ctx);
  +             ctx.setCacheKey(cacheKey);              
                
                // Create EJBObject
                if (con.getContainerInvoker() != null) {
  
  
  

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

Reply via email to