ensure enfin service is started in background when desktop is displayed
authorjprocter <Jim Procter>
Fri, 11 Jun 2010 14:56:39 +0000 (14:56 +0000)
committerjprocter <Jim Procter>
Fri, 11 Jun 2010 14:56:39 +0000 (14:56 +0000)
src/jalview/bin/Jalview.java
src/jalview/gui/Desktop.java

index 833f5c3..04f68f3 100755 (executable)
@@ -179,7 +179,7 @@ public class Jalview
     {
       desktop = new Desktop();
       desktop.setVisible(true);
-      desktop.discoverer.start();
+      desktop.startServiceDiscovery();
       if (!aparser.contains("nousagestats"))
       {
         startUsageStats(desktop);
index 87a79b1..5031f72 100755 (executable)
@@ -1962,4 +1962,17 @@ public class Desktop extends jalview.jbgui.GDesktop implements
     return v_client;
 
   }
+
+  public void startServiceDiscovery()
+  {
+    discoverer.start();
+    
+    try {
+      new Thread(jalview.ws.EnfinEnvision2OneWay.getInstance()).start();
+    } catch (Exception e)
+    {
+      Cache.log.info("Exception when trying to launch Envision2 workflow discovery.",e);
+      Cache.log.info(e.getStackTrace());
+    }
+  }
 }