What version of CFMX are you using, if cfmx7.0 then look into gateways and
in particular the filewatcher one.

All aside I would not ever, and I mean ever do anything like this in CF. The
reason being is the user can take their time uploading a file or the
application creating the file could error, crash or whatever. Causing the
script to always timeout after all it can only live for a short time before
the browser and server loose connection:-)

I will consider this very poor design, and would look at something outside
of CF unless you are using cfmx7+



Andrew Scott
Senior Coldfusion Developer
Aegeon Pty. Ltd.
www.aegeon.com.au
Phone: +613  8676 4223
Mobile: 0404 998 273


-----Original Message-----
From: Richard Colman [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 16 January 2007 9:24 AM
To: CF-Talk
Subject: Timeout on a loop waiting for a file

This snippet is intended to cause the page to wait until a file appears
on a disk directory. This is timing out without completing successfully.
Wonder if the syntax is correct, or ???

<cfloop condition =
"not(FileExists('#application.workdir#/speedplot/#my_spdinput_id#.spd.fi
nished'))">
        <cfset createObject('java', 'java.lang.Thread').sleep(15000) />
</cfloop>

Help appreciated.

Rick Colman


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:266652
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to