From: jprocter Date: Fri, 11 Jun 2010 14:56:39 +0000 (+0000) Subject: ensure enfin service is started in background when desktop is displayed X-Git-Tag: Release_2_5_1~10 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=bffdf014b9688759cc061e3355bc52b82e40e927;p=jalview.git ensure enfin service is started in background when desktop is displayed --- diff --git a/src/jalview/bin/Jalview.java b/src/jalview/bin/Jalview.java index 833f5c3..04f68f3 100755 --- a/src/jalview/bin/Jalview.java +++ b/src/jalview/bin/Jalview.java @@ -179,7 +179,7 @@ public class Jalview { desktop = new Desktop(); desktop.setVisible(true); - desktop.discoverer.start(); + desktop.startServiceDiscovery(); if (!aparser.contains("nousagestats")) { startUsageStats(desktop); diff --git a/src/jalview/gui/Desktop.java b/src/jalview/gui/Desktop.java index 87a79b1..5031f72 100755 --- a/src/jalview/gui/Desktop.java +++ b/src/jalview/gui/Desktop.java @@ -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()); + } + } }