Just give it a name, e.g. <cflock timeout="5" throwontimeout="No" name="myLock" type="EXCLUSIVE">
And use the same name for each. I usually use a hard-coded uuid for the name. > -----Original Message----- > From: Steven Durette [mailto:[EMAIL PROTECTED] > Sent: Thursday, 29 May 2003 5:56 p.m. > To: CF-Talk > Subject: CFLOCK and CFFILE > > Hi all, > > It has been suggested to me to use CFLocks around my cffile write and > cffile appends. > > This is to prevent file errors that we have been having lately where the > append tries to start before the original write is complete. > > What would the syntax for this cflock be? I know that I would probably > want type = Exclusive and timeout = so many seconds, but what about the > scope? There is no FILE scope. > > If anyone has any examples, that would be great. > > Steve > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

