Author: lahiru Date: Wed Jun 13 22:28:09 2012 New Revision: 1350040 URL: http://svn.apache.org/viewvc?rev=1350040&view=rev Log: fixing cpu usage issue with xbaya. Modified: incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/invoker/AsynchronousInvoker.java Modified: incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/invoker/AsynchronousInvoker.java URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/invoker/AsynchronousInvoker.java?rev=1350040&r1=1350039&r2=1350040&view=diff ============================================================================== --- incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/invoker/AsynchronousInvoker.java (original) +++ incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/invoker/AsynchronousInvoker.java Wed Jun 13 22:28:09 2012 @@ -94,6 +94,11 @@ public class AsynchronousInvoker extends }.start(); while(this.getOutputMessage() == null){ + try { + Thread.sleep(1000); + } catch (InterruptedException e) { + logger.error("Error Waiting for the response from backend"); + } } return true; } catch (RuntimeException e) {