Ok, There seems to be a misconception on this...
Let me discuss how one method of development we are doing here, with certain Webservices and components that are being reused, you can not assume how someone is going to incorprate these into a UI. If the UI might not contain the posability of a race condition then YES cflocks will not be needed, but can one person be 100% sure that a race condition is not going to happen. Every project is different an every developer approaches things differently, but the sad fact is that id a variable is held in memory it has the potential of a race condition and that is the sad fact. I mean I designed a UserService that was held in session, but when the front end programer finally implemented the components it failed with all sorts of weir scenarios, why because I assumed how these people would end up using the compenent and was fore thinking the problem through. On 4/15/07, Jaime Metcher <[EMAIL PROTECTED]> wrote: > > Andrew, > > OK, I'm officially confused. I remember it being nutted out, and the > conclusion being that you *don't* need to lock when writing to a session > variable. A simple <cfset Session.x = y> can't possibly have a race > condition, right? It *may* be part of a multistatement operation that > creates a race condition, but in itself, no way. > > Jaime Metcher > > > -----Original Message----- > > From: Andrew Scott [mailto:[EMAIL PROTECTED] > > Sent: Sunday, 15 April 2007 9:46 AM > > To: CF-Talk > > Subject: Re: Using CFCs in session scope - need cflock help > > > > > > Jaime, > > > > In the example of the original question the CFC is stored inside a > session > > scope. > > > > Anytime one write to session.somevariable, there is a chance that there > > could be a race condition. I am sure you know that, and if the session > > containes a CFC then the rules of race conditions still need to apply. > > > > This was nutted out many moons ago on the CFCDev mailing list. > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Create Web Applications With ColdFusion MX7 & Flex 2. Build powerful, scalable RIAs. Free Trial http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:275237 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

