On 11/11/05, Mehdi, Agha <[EMAIL PROTECTED]> wrote:
> We're using CF 7 Ent. I guess I'm not clear as to how to read from an
> asynchronous process. Writing to the process is easy. Just submit it to the
> asynchronous thread and forget about it but what happens when you need to
> read back from the asynchronous thread and your request ends before the
> response gets back from it.

Use my Concurrency library. It lets you create a FutureTask object
which you "run()" to call the async method. When you are ready to
display the result, call "get()" and it will 'join' the threads.

You can store the FutureTask object in session scope and continue
serving up pages for example and check session.futureTaskObj.isDone()
to see if the result is available.

Downloadable from my blog - look in the software pod on the right.
--
Sean A Corfield -- http://corfield.org/
Got frameworks?

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood


----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to 
[email protected] with the words 'unsubscribe cfcdev' as the subject of the 
email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting 
(www.cfxhosting.com).

An archive of the CFCDev list is available at 
www.mail-archive.com/[email protected]


Reply via email to