FileDocCategorySizeDatePackage
BusinessThread.javaAPI DocJBoss 4.2.12166Fri Jul 13 21:02:22 BST 2007test.asynchronous

BusinessThread

public class BusinessThread extends Object implements Runnable
version
$Revision: 57186 $
author
{Claude Hussenet Independent Consultant}.

Fields Summary
private BusinessModel
businessModel
private long
sleep
private long
parameter
public Object
result
Constructors Summary
public BusinessThread(BusinessModel aBusinessModel, long parameter, long sleep, String txt)


		this.businessModel = aBusinessModel;

		this.sleep = sleep;

		this.parameter = parameter;

		

	
Methods Summary
public voidrun()


		AsynchronousFacade asynchronousFacade =

			(AsynchronousFacade)businessModel;

		businessModel.processBusinessModel2(parameter);

		BusinessModel.sleep(sleep);

		AsynchronousTask asynchronousTask1 =

			asynchronousFacade.getAsynchronousTask();

		if (!asynchronousFacade.isDone(asynchronousTask1))

			asynchronousFacade.waitForResponse(asynchronousTask1);

			result =asynchronousFacade.getReturnValue(asynchronousTask1);