airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hes...@apache.org
Subject svn commit: r1357623 - /incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/ui/dialogs/registry/JCRRegistryWindow.java
Date Thu, 05 Jul 2012 14:20:54 GMT
Author: heshan
Date: Thu Jul  5 14:20:54 2012
New Revision: 1357623

URL: http://svn.apache.org/viewvc?rev=1357623&view=rev
Log:
Fix for AIRAVATA-510.

Modified:
    incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/ui/dialogs/registry/JCRRegistryWindow.java

Modified: incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/ui/dialogs/registry/JCRRegistryWindow.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/ui/dialogs/registry/JCRRegistryWindow.java?rev=1357623&r1=1357622&r2=1357623&view=diff
==============================================================================
--- incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/ui/dialogs/registry/JCRRegistryWindow.java
(original)
+++ incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/ui/dialogs/registry/JCRRegistryWindow.java
Thu Jul  5 14:20:54 2012
@@ -33,6 +33,7 @@ import javax.swing.JButton;
 import javax.swing.JLabel;
 import javax.swing.JPasswordField;
 
+import org.apache.airavata.common.registry.api.exception.RegistryException;
 import org.apache.airavata.workflow.model.component.registry.JCRComponentRegistry;
 import org.apache.airavata.xbaya.XBayaConfiguration;
 import org.apache.airavata.xbaya.XBayaEngine;
@@ -107,6 +108,17 @@ public class JCRRegistryWindow {
             return;
         }
         XBayaConfiguration configuration = this.engine.getConfiguration();
+
+        try {
+            this.engine.getMonitor().getConfiguration().
+                    setBrokerURL(registry.getRegistry().getEventingServiceURLList().get(0));
+            this.engine.getMonitor().getConfiguration().
+                    setMessageBoxURL(registry.getRegistry().getMessageBoxServiceURLList().get(0));
+        } catch (RegistryException e) {
+            this.engine.getGUI().getErrorWindow().error(ErrorMessages.URL_WRONG, e);
+            return;
+        }
+
         configuration.setJcrComponentRegistry(registry);
         configuration.setRegigstryUserName(username);
         configuration.setRegistryPassphrase(password);



Mime
View raw message