From bffdf014b9688759cc061e3355bc52b82e40e927 Mon Sep 17 00:00:00 2001 From: jprocter Date: Fri, 11 Jun 2010 14:56:39 +0000 Subject: [PATCH] ensure enfin service is started in background when desktop is displayed --- src/jalview/bin/Jalview.java | 2 +- src/jalview/gui/Desktop.java | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) 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()); + } + } } -- 1.7.10.2