jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r511882 - in /jackrabbit/branches/1.2/jackrabbit-jca/src/main/java/org/apache/jackrabbit/jca: JCAManagedConnection.java JCAManagedConnectionFactory.java
Date Mon, 26 Feb 2007 16:37:37 GMT
Author: jukka
Date: Mon Feb 26 08:37:36 2007
New Revision: 511882

URL: http://svn.apache.org/viewvc?view=rev&rev=511882
Log:
1.2: Merged revisions 510468 and 510576 (CJR-761)

Modified:
    jackrabbit/branches/1.2/jackrabbit-jca/src/main/java/org/apache/jackrabbit/jca/JCAManagedConnection.java
    jackrabbit/branches/1.2/jackrabbit-jca/src/main/java/org/apache/jackrabbit/jca/JCAManagedConnectionFactory.java

Modified: jackrabbit/branches/1.2/jackrabbit-jca/src/main/java/org/apache/jackrabbit/jca/JCAManagedConnection.java
URL: http://svn.apache.org/viewvc/jackrabbit/branches/1.2/jackrabbit-jca/src/main/java/org/apache/jackrabbit/jca/JCAManagedConnection.java?view=diff&rev=511882&r1=511881&r2=511882
==============================================================================
--- jackrabbit/branches/1.2/jackrabbit-jca/src/main/java/org/apache/jackrabbit/jca/JCAManagedConnection.java
(original)
+++ jackrabbit/branches/1.2/jackrabbit-jca/src/main/java/org/apache/jackrabbit/jca/JCAManagedConnection.java
Mon Feb 26 08:37:36 2007
@@ -158,7 +158,10 @@
             try {
                 this.session.refresh(false);
             } catch (RepositoryException e) {
-                throw new ResourceException("unable to cleanup connection", e);
+                ResourceException exception =
+                    new ResourceException("unable to cleanup connection");
+                exception.setLinkedException(e);
+                throw exception;
             }
             this.handles.clear();
         }

Modified: jackrabbit/branches/1.2/jackrabbit-jca/src/main/java/org/apache/jackrabbit/jca/JCAManagedConnectionFactory.java
URL: http://svn.apache.org/viewvc/jackrabbit/branches/1.2/jackrabbit-jca/src/main/java/org/apache/jackrabbit/jca/JCAManagedConnectionFactory.java?view=diff&rev=511882&r1=511881&r2=511882
==============================================================================
--- jackrabbit/branches/1.2/jackrabbit-jca/src/main/java/org/apache/jackrabbit/jca/JCAManagedConnectionFactory.java
(original)
+++ jackrabbit/branches/1.2/jackrabbit-jca/src/main/java/org/apache/jackrabbit/jca/JCAManagedConnectionFactory.java
Mon Feb 26 08:37:36 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;
         }
     }
 
@@ -277,8 +279,10 @@
                 log("Created repository (" + repository + ")");
             } catch (RepositoryException e) {
                 log("Failed to create repository", e);
-                throw new ResourceException(
+                ResourceException exception = new ResourceException(
                         "Failed to create session: " + e.getMessage());
+                exception.setLinkedException(e);
+                throw exception;
             }
         }
     }



Mime
View raw message