Where are the objects? In the application scope as well? If so, they need
to
be locked if you're concerned about the possibility of a race condition.


That's sort of what I'm asking too...where are the objects?

If by calling getBean(), I'm retrieving a reference to a singleton that I
then call setters on, should I assume that ColdSpring is storing this
singleton in the application scope and that I should be locking any time I
want to reference it?



On 5/4/07, Dave Watts <[EMAIL PROTECTED]> wrote:

> What if my application variable contains a factory that
> retrieves objects and then I call setters on those objects w/o a lock?
>
> config = application.beanFactory.getBean("baseConfig")
> config.setValue("name","value")

Where are the objects? In the application scope as well? If so, they need
to
be locked if you're concerned about the possibility of a race condition.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

This email has been processed by SmoothZap - www.smoothwall.net



You are subscribed to cfcdev. To unsubscribe, please follow the
instructions at http://www.cfczone.org/listserv.cfm

CFCDev is supported by:
Katapult Media, Inc.
We are cool code geeks looking for fun projects to rock!
www.katapultmedia.com

An archive of the CFCDev list is available at
www.mail-archive.com/cfcdev@cfczone.org




You are subscribed to cfcdev. To unsubscribe, please follow the instructions at 
http://www.cfczone.org/listserv.cfm

CFCDev is supported by:
Katapult Media, Inc.
We are cool code geeks looking for fun projects to rock!
www.katapultmedia.com

An archive of the CFCDev list is available at 
www.mail-archive.com/cfcdev@cfczone.org

Reply via email to