On Thu, Oct 8, 2009 at 12:21, Alan Williams <[email protected]> wrote:
> In the executeAsynch method of your activity, you create a Runnable > (normally a Thread) that will actually run the service for the activity > e.g. executes the beanshell script or queries the BioMart database. You > then do > > theCallback.requestRun(theRunnable) > > which asks Taverna to run the activity. No, as pointed out to me by Tom, you should *not* make a Thread to create a Runnable. You should just make a Runnable. requestRun() will take care of making the actual thread. (Supposedly the never-started threads would just hang around leaking memory, as requestRun() would just call their run() method from the Runnable interface.) -- Stian Soiland-Reyes, myGrid team School of Computer Science The University of Manchester ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ taverna-hackers mailing list [email protected] Web site: http://www.taverna.org.uk Mailing lists: http://www.taverna.org.uk/taverna-mailing-lists/ Developers Guide: http://www.mygrid.org.uk/tools/developer-information
