directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r658052 - /directory/apacheds/trunk/apacheds-jdbm/src/main/java/jdbm/RecordManagerFactory.java
Date Tue, 20 May 2008 00:10:31 GMT
Author: akarasulu
Date: Mon May 19 17:10:31 2008
New Revision: 658052

URL: http://svn.apache.org/viewvc?rev=658052&view=rev
Log:
fixing class loading mechanism which may be an issue if using an application server

Modified:
    directory/apacheds/trunk/apacheds-jdbm/src/main/java/jdbm/RecordManagerFactory.java

Modified: directory/apacheds/trunk/apacheds-jdbm/src/main/java/jdbm/RecordManagerFactory.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/apacheds-jdbm/src/main/java/jdbm/RecordManagerFactory.java?rev=658052&r1=658051&r2=658052&view=diff
==============================================================================
--- directory/apacheds/trunk/apacheds-jdbm/src/main/java/jdbm/RecordManagerFactory.java (original)
+++ directory/apacheds/trunk/apacheds-jdbm/src/main/java/jdbm/RecordManagerFactory.java Mon
May 19 17:10:31 2008
@@ -102,7 +102,7 @@
                                         "jdbm.recman.Provider" );
 
         try {
-            clazz = Class.forName( provider );
+            clazz = Thread.currentThread().getContextClassLoader().loadClass( provider );
             factory = (RecordManagerProvider) clazz.newInstance();
         } catch ( Exception except ) {
             throw new IllegalArgumentException( "Invalid record manager provider: "



Mime
View raw message