jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r418448 - /jackrabbit/trunk/jca/src/java/org/apache/jackrabbit/jca/JCAManagedConnectionFactory.java
Date Sat, 01 Jul 2006 07:42:26 GMT
Author: jukka
Date: Sat Jul  1 00:42:26 2006
New Revision: 418448

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

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

Modified: jackrabbit/trunk/jca/src/java/org/apache/jackrabbit/jca/JCAManagedConnectionFactory.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jca/src/java/org/apache/jackrabbit/jca/JCAManagedConnectionFactory.java?rev=418448&r1=418447&r2=418448&view=diff
==============================================================================
--- jackrabbit/trunk/jca/src/java/org/apache/jackrabbit/jca/JCAManagedConnectionFactory.java
(original)
+++ jackrabbit/trunk/jca/src/java/org/apache/jackrabbit/jca/JCAManagedConnectionFactory.java
Sat Jul  1 00:42:26 2006
@@ -134,7 +134,8 @@
             return session;
         } catch (RepositoryException e) {
             log("Failed to create session", e);
-            throw new ResourceException(e);
+            throw new ResourceException(
+                    "Failed to create session: " + e.getMessage());
         }
     }
 
@@ -268,7 +269,8 @@
                 log("Created repository (" + repository + ")");
             } catch (RepositoryException e) {
                 log("Failed to create repository", e);
-                throw new ResourceException(e);
+                throw new ResourceException(
+                        "Failed to create session: " + e.getMessage());
             }
         }
     }



Mime
View raw message