Yeah, the solution's not a huge deal, just very nice to have discovered the problem before we got a ways down the road. Though passing state to a method for that single invocation is far from an ideal situation (this isn't a flyweight pattern in action, so that argument's not valid ;).
Cheers, barneyb > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Sean A Corfield > Sent: Friday, February 13, 2004 10:29 AM > To: [EMAIL PROTECTED] > Subject: Re: [CFCDev] How should I define variable in a CFC? > > On Feb 13, 2004, at 10:13 AM, Barney Boisvert wrote: > > That or file uploads typically aren't real high-load operations (at > > least > > not in my experience), so people haven't been bitten by the lack of > > thread > > safety. We're rebuilding a document management system right now in > > CFCs, > > and a part of that is file uploads. This thread could not > have been > > more > > timely. We hadn't had any problems with CFC-based file > uploads in the > > "hash-it-out" phase, but we haven't load tested yet, assuming > > (wrongly) that > > proper scoping will handle thread concurrency. > > Well, if you move the actual <cffile> operation to a separate CFC and > instantiate that for every method call, you'll be fine (or <cfinvoke > component="name" method="doUpload" ...>). > > Sean A Corfield -- http://www.corfield.org/blog/ > > "The reasonable man adapts himself to the world; the unreasonable one > persists in trying to adapt the world to himself. Therefore all > progress depends on the unreasonable man." > -- George Bernard Shaw > > ---------------------------------------------------------- > You are subscribed to cfcdev. To unsubscribe, send an email > to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' > in the message of the email. > > CFCDev is run by CFCZone (www.cfczone.org) and supported > by Mindtool, Corporation (www.mindtool.com). > > An archive of the CFCDev list is available at > www.mail-archive.com/[EMAIL PROTECTED] > ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' in the message of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool, Corporation (www.mindtool.com). An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]
