You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by sa...@apache.org on 2012/10/04 06:20:11 UTC

svn commit: r1393908 - /airavata/trunk/modules/workflow-model/workflow-model-core/src/main/java/org/apache/airavata/workflow/model/component/registry/JCRComponentRegistry.java

Author: samindaw
Date: Thu Oct  4 04:20:11 2012
New Revision: 1393908

URL: http://svn.apache.org/viewvc?rev=1393908&view=rev
Log:
allowing default gateway & user specified from a 3rd party class etc.

Modified:
    airavata/trunk/modules/workflow-model/workflow-model-core/src/main/java/org/apache/airavata/workflow/model/component/registry/JCRComponentRegistry.java

Modified: airavata/trunk/modules/workflow-model/workflow-model-core/src/main/java/org/apache/airavata/workflow/model/component/registry/JCRComponentRegistry.java
URL: http://svn.apache.org/viewvc/airavata/trunk/modules/workflow-model/workflow-model-core/src/main/java/org/apache/airavata/workflow/model/component/registry/JCRComponentRegistry.java?rev=1393908&r1=1393907&r2=1393908&view=diff
==============================================================================
--- airavata/trunk/modules/workflow-model/workflow-model-core/src/main/java/org/apache/airavata/workflow/model/component/registry/JCRComponentRegistry.java (original)
+++ airavata/trunk/modules/workflow-model/workflow-model-core/src/main/java/org/apache/airavata/workflow/model/component/registry/JCRComponentRegistry.java Thu Oct  4 04:20:11 2012
@@ -72,10 +72,14 @@ public class JCRComponentRegistry extend
 		        }
 	        }
         }else{
-        	if (username==null){
-				username=provider.getValue(RegistryConstants.KEY_DEFAULT_REGISTRY_USER).toString();
-            }
-        	gatewayName = provider.getValue(RegistryConstants.KEY_DEFAULT_GATEWAY_ID).toString();
+        	try {
+				if (username==null){
+					username=provider.getValue(RegistryConstants.KEY_DEFAULT_REGISTRY_USER).toString();
+				}
+				gatewayName = provider.getValue(RegistryConstants.KEY_DEFAULT_GATEWAY_ID).toString();
+			} catch (Exception e) {
+				e.printStackTrace();
+			}
         }
         if (username==null){
         	username="admin";