jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r727390 - /jackrabbit/trunk/jackrabbit-jcr-servlet/src/main/java/org/apache/jackrabbit/servlet/remote/RMIRemoteBindingServlet.java
Date Wed, 17 Dec 2008 14:27:32 GMT
Author: jukka
Date: Wed Dec 17 06:27:32 2008
New Revision: 727390

URL: http://svn.apache.org/viewvc?rev=727390&view=rev
Log:
JCR-1910: RMIRemoteBindingServlet fails to initialize if the RMI registry is not available

Use rebind() avoid the AlreadyBoundException.

Modified:
    jackrabbit/trunk/jackrabbit-jcr-servlet/src/main/java/org/apache/jackrabbit/servlet/remote/RMIRemoteBindingServlet.java

Modified: jackrabbit/trunk/jackrabbit-jcr-servlet/src/main/java/org/apache/jackrabbit/servlet/remote/RMIRemoteBindingServlet.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-servlet/src/main/java/org/apache/jackrabbit/servlet/remote/RMIRemoteBindingServlet.java?rev=727390&r1=727389&r2=727390&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-servlet/src/main/java/org/apache/jackrabbit/servlet/remote/RMIRemoteBindingServlet.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-servlet/src/main/java/org/apache/jackrabbit/servlet/remote/RMIRemoteBindingServlet.java
Wed Dec 17 06:27:32 2008
@@ -75,11 +75,9 @@
             url = "//localhost/javax/jcr/Repository";
         }
         try {
-            Naming.bind(url, getRemoteRepository());
+            Naming.rebind(url, getRemoteRepository());
         } catch (MalformedURLException e) {
             log("Invalid RMI URL: " + url, e);
-        } catch (AlreadyBoundException e) {
-            log("RMI URL is already bound: " + url, e);
         } catch (RemoteException e) {
             log("Failed to bind repository to RMI: " + url, e);
         }



Mime
View raw message