User: starksm 
  Date: 02/04/12 12:30:44

  Modified:    src/main/org/jboss/ejb/plugins/local
                        BaseLocalContainerInvoker.java
  Log:
  Start cleaning up the web of container references in destroy so that
  the container may be garbage collected.
  
  Revision  Changes    Path
  1.21      +9 -1      
jboss/src/main/org/jboss/ejb/plugins/local/BaseLocalContainerInvoker.java
  
  Index: BaseLocalContainerInvoker.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jboss/src/main/org/jboss/ejb/plugins/local/BaseLocalContainerInvoker.java,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- BaseLocalContainerInvoker.java    8 Mar 2002 08:12:45 -0000       1.20
  +++ BaseLocalContainerInvoker.java    12 Apr 2002 19:30:44 -0000      1.21
  @@ -169,9 +169,12 @@
         {
            return;
         }
  -      
  +
  +      // Clean up the home proxy binding
         try
         {
  +         String jndiName = container.getBeanMetaData().getLocalJndiName();
  +         LocalHomeObjectFactory.unbind(jndiName);
            InitialContext ctx = new InitialContext();
            ctx.unbind(container.getBeanMetaData().getLocalJndiName());
         }
  @@ -182,6 +185,11 @@
      }
      public void destroy()
      {
  +      if( beanMethodInvokerMap != null )
  +         beanMethodInvokerMap.clear();
  +      if( homeMethodInvokerMap != null )
  +         homeMethodInvokerMap.clear();
  +      container = null;
      }
   
      // ContainerInvoker implementation -------------------------------
  
  
  

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

Reply via email to