jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r510468 - /jackrabbit/trunk/jackrabbit-jca/src/main/java/org/apache/jackrabbit/jca/JCAManagedConnectionFactory.java
Date Thu, 22 Feb 2007 11:33:21 GMT
Author: jukka
Date: Thu Feb 22 03:33:21 2007
New Revision: 510468

URL: http://svn.apache.org/viewvc?view=rev&rev=510468
Log:
JCR-761: Use only J2EE 1.3 methods.

Modified:
    jackrabbit/trunk/jackrabbit-jca/src/main/java/org/apache/jackrabbit/jca/JCAManagedConnectionFactory.java

Modified: jackrabbit/trunk/jackrabbit-jca/src/main/java/org/apache/jackrabbit/jca/JCAManagedConnectionFactory.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jca/src/main/java/org/apache/jackrabbit/jca/JCAManagedConnectionFactory.java?view=diff&rev=510468&r1=510467&r2=510468
==============================================================================
--- jackrabbit/trunk/jackrabbit-jca/src/main/java/org/apache/jackrabbit/jca/JCAManagedConnectionFactory.java
(original)
+++ jackrabbit/trunk/jackrabbit-jca/src/main/java/org/apache/jackrabbit/jca/JCAManagedConnectionFactory.java
Thu Feb 22 03:33:21 2007
@@ -142,8 +142,10 @@
             return session;
         } catch (RepositoryException e) {
             log("Failed to create session", e);
-            throw new ResourceException(
-                    "Failed to create session: " + e.getMessage(), e);
+            ResourceException exception = new ResourceException(
+                    "Failed to create session: " + e.getMessage());
+            exception.setLinkedException(e);
+            throw exception;
         }
     }
 



Mime
View raw message