jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r610218 - /jackrabbit/branches/1.4/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/journal/JNDIDatabaseJournal.java
Date Tue, 08 Jan 2008 23:07:23 GMT
Author: jukka
Date: Tue Jan  8 15:07:22 2008
New Revision: 610218

URL: http://svn.apache.org/viewvc?rev=610218&view=rev
Log:
1.4: Merged revision 610199 (JCR-1291)

Modified:
    jackrabbit/branches/1.4/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/journal/JNDIDatabaseJournal.java

Modified: jackrabbit/branches/1.4/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/journal/JNDIDatabaseJournal.java
URL: http://svn.apache.org/viewvc/jackrabbit/branches/1.4/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/journal/JNDIDatabaseJournal.java?rev=610218&r1=610217&r2=610218&view=diff
==============================================================================
--- jackrabbit/branches/1.4/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/journal/JNDIDatabaseJournal.java
(original)
+++ jackrabbit/branches/1.4/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/journal/JNDIDatabaseJournal.java
Tue Jan  8 15:07:22 2008
@@ -75,8 +75,10 @@
             DataSource dataSource = (DataSource) ic.lookup(dataSourceLocation);
             return dataSource.getConnection();
         } catch (NamingException e) {
-            throw new SQLException(
-                    "DataSource not found: " + dataSourceLocation, e);
+            SQLException exception = new SQLException(
+                    "DataSource not found: " + dataSourceLocation);
+            exception.initCause(e);
+            throw exception;
         }
     }
 



Mime
View raw message