ensure enfin service is started in background when desktop is displayed
[jalview.git] / src / jalview / gui / Desktop.java
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());
+    }
+  }
 }