You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by la...@apache.org on 2011/10/06 23:31:08 UTC

svn commit: r1179863 - /incubator/airavata/trunk/modules/commons/registry-api/src/main/java/org/apache/airavata/registry/api/impl/JCRRegistry.java

Author: lahiru
Date: Thu Oct  6 21:31:07 2011
New Revision: 1179863

URL: http://svn.apache.org/viewvc?rev=1179863&view=rev
Log:
fixing https://issues.apache.org/jira/browse/AIRAVATA-130.

Modified:
    incubator/airavata/trunk/modules/commons/registry-api/src/main/java/org/apache/airavata/registry/api/impl/JCRRegistry.java

Modified: incubator/airavata/trunk/modules/commons/registry-api/src/main/java/org/apache/airavata/registry/api/impl/JCRRegistry.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/modules/commons/registry-api/src/main/java/org/apache/airavata/registry/api/impl/JCRRegistry.java?rev=1179863&r1=1179862&r2=1179863&view=diff
==============================================================================
--- incubator/airavata/trunk/modules/commons/registry-api/src/main/java/org/apache/airavata/registry/api/impl/JCRRegistry.java (original)
+++ incubator/airavata/trunk/modules/commons/registry-api/src/main/java/org/apache/airavata/registry/api/impl/JCRRegistry.java Thu Oct  6 21:31:07 2011
@@ -72,7 +72,7 @@ public class JCRRegistry implements Axis
 	private static Logger log = LoggerFactory.getLogger(JCRRegistry.class);
 
 	public JCRRegistry(String className, String user, String pass,
-			Map<String, String> map) {
+                       Map<String, String> map) throws RepositoryException {
 		try {
 			/*
 			 * Load the configuration from properties file at this level and
@@ -94,12 +94,13 @@ public class JCRRegistry implements Axis
 			log.error("Error class path settting", e);
 		} catch (RepositoryException e) {
 			log.error("Error connecting Remote Registry instance", e);
+            throw e;
 		} catch (Exception e) {
 			log.error("Error init", e);
 		}
 	}
 
-    public JCRRegistry(Repository repo,Credentials credentials){
+    public JCRRegistry(Repository repo, Credentials credentials){
         this.repository = repo;
         this.credentials = credentials;
     }