User: d_jencks
  Date: 02/04/08 20:48:59

  Modified:    src/main/org/jboss/ejb EntityContainer.java
  Log:
  fix for bug 541323, made stop reverse operation order of start
  
  Revision  Changes    Path
  1.74      +21 -17    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.73
  retrieving revision 1.74
  diff -u -r1.73 -r1.74
  --- EntityContainer.java      6 Mar 2002 18:56:14 -0000       1.73
  +++ EntityContainer.java      9 Apr 2002 03:48:59 -0000       1.74
  @@ -61,7 +61,7 @@
   * @author <a href="mailto:[EMAIL PROTECTED]";>Daniel OConnor</a>
   * @author <a href="[EMAIL PROTECTED]">Bill Burke</a>
   * @author <a href="mailto:[EMAIL PROTECTED]";>Andreas Schaefer</a>
  -* @version $Revision: 1.73 $
  +* @version $Revision: 1.74 $
   *
   * <p><b>Revisions:</b>
   *
  @@ -392,22 +392,9 @@
   
         try
         {
  -         // Call default stop
  -         super.stop();
  -
  -         // Stop container invoker
  -         if (containerInvoker != null)
  -            containerInvoker.stop();
  -
  -         // Stop instance cache
  -         instanceCache.stop();
  -
  -         // Stop persistence
  -         persistenceManager.stop();
  -
  -         // Stop the instance pool
  -         instancePool.stop();
  -
  +         //Stop items in reverse order from start
  +         //This assures that CachedConnectionInterceptor will get removed
  +         //from in between this and the pm before the pm is stopped.
            // Stop all interceptors in the chain
            Interceptor in = interceptor;
            while (in != null)
  @@ -415,6 +402,23 @@
               in.stop();
               in = in.getNext();
            }      
  +
  +         // Stop the instance pool
  +         instancePool.stop();
  +
  +
  +         // Stop persistence
  +         persistenceManager.stop();
  +
  +         // Stop instance cache
  +         instanceCache.stop();
  +
  +         // Stop container invoker
  +         if (containerInvoker != null)
  +            containerInvoker.stop();
  +
  +         // Call default stop
  +         super.stop();
         }
         finally
         {
  
  
  

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

Reply via email to