dblevins    2005/07/05 22:04:03

  Modified:    modules/core/src/java/org/openejb/resource/jdbc
                        JdbcManagedConnectionFactory.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.6       +3 -2      
openejb1/modules/core/src/java/org/openejb/resource/jdbc/JdbcManagedConnectionFactory.java
  
  Index: JdbcManagedConnectionFactory.java
  ===================================================================
  RCS file: 
/home/projects/openejb/scm/openejb1/modules/core/src/java/org/openejb/resource/jdbc/JdbcManagedConnectionFactory.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- JdbcManagedConnectionFactory.java 11 Aug 2004 20:07:36 -0000      1.5
  +++ JdbcManagedConnectionFactory.java 6 Jul 2005 02:04:03 -0000       1.6
  @@ -57,6 +57,7 @@
   import org.openejb.core.EnvProps;
   import org.openejb.util.FileUtils;
   import org.openejb.util.Logger;
  +import org.openejb.OpenEJB;
   
   
   public class JdbcManagedConnectionFactory 
  @@ -110,7 +111,7 @@
       public void setJdbcDriver(String driver) throws 
javax.resource.spi.ResourceAdapterInternalException{
           jdbcDriver = driver;
           try{
  -            ClassLoader cl = 
org.openejb.util.ClasspathUtils.getContextClassLoader();
  +            ClassLoader cl = OpenEJB.getContextClassLoader();
               Class.forName( jdbcDriver, true, cl);
           }catch(ClassNotFoundException cnf){
               //BUG: If this situtuation occurs, only the words:
  
  
  

Reply via email to