Thanks Joe,

Can you give me some examples of possible race conditions in session scope?
I'm not afraid to admit that locking a race conditions are something that I
still need a stern talking to about. I think I understand how it applies to
things that are in the application scope but I'm not sure how it applies to
session scope and moreover objects.

Thanks, session locking is a bit of a grey area for me!

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Joe Rinehart
Sent: Monday, June 20, 2005 9:28 AM
To: [email protected]
Subject: Re: [CFCDev] manipulating an object in session

Hey Joe,

AFAIK, if there's no chance of a race condition taking place, you
don't need to lock the session-scoped CFC for concerns of memory
corruption.

-Joe

On 6/20/05, Joe Ferraro <[EMAIL PROTECTED]> wrote:
>  
>  
> 
> What is the best method for manipulating an object in session? For example
I
> keep a cart object in session to store shopping cart data. Lets say I want
> to call the add method of that object. I have a cartFacade which I use to
> get the object from session, but I've noticed that it only returns a
> reference to the object in session so I'm running on the assumption that
> editing that object without locking it isn't good practice. On the other
end
> it seems strange to call an object from the cartFacade and then put a lock
> on the object within the method that is manipulating the object. What's
best
> practice for dealing with this? 
> 
>   
> 
> Thanks in advance! 
> 
>   
> 
> Joe Ferraro
> ----------------------------------------------------------
> 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).
> 
> CFCDev is supported by New Atlanta, makers of BlueDragon
> http://www.newatlanta.com/products/bluedragon/index.cfm
> 
> An archive of the CFCDev list is available at
> www.mail-archive.com/[email protected] 


-- 
Get Glued!
The Model-Glue ColdFusion Framework
http://www.model-glue.com


----------------------------------------------------------
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).

CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm

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' as the subject of the 
email.

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

CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm

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


Reply via email to