User: reverbel
  Date: 02/03/14 15:46:49

  Modified:    src/main/org/jboss/ejb EjbModule.java
  Log:
  The container classloader now has the container WebClassLoader as its
  parent. If the container WebClassLoader is an instance of a WebClassLoader
  subclass that dynamically generates stub classes (such as the one used by
  the IIOP module), then the container will see any additional classes
  loaded by this subclass.
  
  Revision  Changes    Path
  1.12      +6 -5      jboss/src/main/org/jboss/ejb/EjbModule.java
  
  Index: EjbModule.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/ejb/EjbModule.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- EjbModule.java    11 Mar 2002 04:31:34 -0000      1.11
  +++ EjbModule.java    14 Mar 2002 23:46:49 -0000      1.12
  @@ -73,7 +73,7 @@
    * @author <a href="mailto:[EMAIL PROTECTED]";>Rickard �berg</a>
    * @author <a href="mailto:[EMAIL PROTECTED]";>David Jencks</a>
    * @author <a href="mailto:[EMAIL PROTECTED]";>Francisco Reverbel</a>
  - * @version $Revision: 1.11 $
  + * @version $Revision: 1.12 $
    *
    * @jmx:mbean extends="org.jboss.system.ServiceMBean"
    */
  @@ -574,13 +574,10 @@
         ClassLoader localCl )
      throws NamingException, DeploymentException
      {
  -      // Create classloader for this container
  -      // Only used to unique the bean ENC and does not augment class loading
  -      container.setClassLoader( new URLClassLoader( new URL[ 0 ], cl ) );
         // Create local classloader for this container
         // For loading resources that must come from the local jar.  Not for loading 
classes!
         container.setLocalClassLoader( new URLClassLoader( new URL[ 0 ], localCl ) );
  -      // Set metadata
  +      // Set metadata (do it *before* creating the container's WebClassLoader)
         container.setBeanMetaData( bean );
   
         // Create the container's WebClassLoader 
  @@ -614,6 +611,10 @@
            }
         }
         container.setCodebase(sb.toString());
  +
  +      // Create classloader for this container
  +      // Only used to unique the bean ENC and does not augment class loading
  +      container.setClassLoader( new URLClassLoader( new URL[ 0 ], wcl ) );
   
         // Set transaction manager
         InitialContext iniCtx = new InitialContext();
  
  
  

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

Reply via email to