jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r510576 - in /jackrabbit/trunk/jackrabbit-jca/src/main/java/org/apache/jackrabbit/jca: JCAManagedConnection.java JCAManagedConnectionFactory.java
Date Thu, 22 Feb 2007 16:17:55 GMT
Author: jukka
Date: Thu Feb 22 08:17:55 2007
New Revision: 510576

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

Modified:
    jackrabbit/trunk/jackrabbit-jca/src/main/java/org/apache/jackrabbit/jca/JCAManagedConnection.java
    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/JCAManagedConnection.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jca/src/main/java/org/apache/jackrabbit/jca/JCAManagedConnection.java?view=diff&rev=510576&r1=510575&r2=510576
==============================================================================
--- jackrabbit/trunk/jackrabbit-jca/src/main/java/org/apache/jackrabbit/jca/JCAManagedConnection.java
(original)
+++ jackrabbit/trunk/jackrabbit-jca/src/main/java/org/apache/jackrabbit/jca/JCAManagedConnection.java
Thu Feb 22 08:17:55 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/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=510576&r1=510575&r2=510576
==============================================================================
--- 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 08:17:55 2007
@@ -290,8 +290,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