dblevins    2005/07/05 22:04:03

  Modified:    modules/core/src/java/org/openejb/core/stateless
                        StatelessContainer.java
  Log:

  Moved the getContextClassLoader method to the OpenEJB class so ClasspathUtils 
only contains the classpath modifying methods used by the Loaders and other 
code.
  
  Going to kill the ClasspathUtils and make everyone as the loaders directly to 
modify the classpath, rather than sometimes using the loader and then asking 
ClasspathUtils to guess what loader to use.
  
  Part of the fix for OPENEJB-40, OPENEJB-41 and OPENEJB-42.
  
  Revision  Changes    Path
  1.4       +3 -3      
openejb1/modules/core/src/java/org/openejb/core/stateless/StatelessContainer.java
  
  Index: StatelessContainer.java
  ===================================================================
  RCS file: 
/home/projects/openejb/scm/openejb1/modules/core/src/java/org/openejb/core/stateless/StatelessContainer.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- StatelessContainer.java   19 Jun 2005 22:40:32 -0000      1.3
  +++ StatelessContainer.java   6 Jul 2005 02:04:03 -0000       1.4
  @@ -119,7 +119,7 @@
           SafeProperties safeProps = toolkit.getSafeProperties(properties);
           try{
           String className = safeProps.getProperty(EnvProps.IM_CLASS_NAME, 
"org.openejb.core.stateless.StatelessInstanceManager");
  -        ClassLoader cl = 
org.openejb.util.ClasspathUtils.getContextClassLoader();
  +        ClassLoader cl = OpenEJB.getContextClassLoader();
           instanceManager =(StatelessInstanceManager)Class.forName(className, 
true, cl).newInstance();
           }catch(Exception e){
           throw new org.openejb.SystemException("Initialization of 
InstanceManager for the \""+containerID+"\" stateful container failed",e);
  
  
  

Reply via email to