Oh, so the problem is not in the code that you're looking at
(onApplicationStart), but the fact that you are reinitializing a
shared scope while someone else is using it another part of the
system.
I got it.
On Dec 13, 3:03 pm, Dennis Clark <
boomf...@gmail.com> wrote:
> Race conditions caused by directly invoking application or session
> initialization code often require more thought than simply throwing a cflock
> around the call. I decided to write a blog entry to explain:
>
> Boomerang Fish: ColdFusion shared scopes and race
> conditions<
http://blog.bullamakanka.net/2009/12/coldfusion-shared-scopes-and-rac...>
>
> -- Dennis
>
>
>
> On Sat, Dec 12, 2009 at 9:25 PM, Raymond Camden <
rcam...@gmail.com> wrote:
> > You don't need to lock if you let them run "normally." If you run the
> > methods manually (many people will add a call to onApplicationStart
> > inside their onRequestStart if a URL param exist) then you may need a
> > lock. Of course, you only need a lock if you actually care about a
> > race condition. 99% of the code I see in application startup just
> > initializes a set of variables.
>
> > On Sat, Dec 12, 2009 at 5:55 PM, Sean Corfield <
seancorfi...@gmail.com>
> > wrote:
> > > On Sat, Dec 12, 2009 at 7:33 AM, Phillip Senn <
phillips...@gmail.com>
> > wrote:
>
> > >> Do you need to lock the application scope, or is that implied in
> > >> onApplicationStart?
>
> > > onApplicationStart() (and onSessionStart()) are automatically
> > > single-threaded by the CFML engine (so, no, you don't need to lock).
> > > --
> > > Sean A Corfield -- (904) 302-SEAN
> > > Railo Technologies US --
http://getrailo.com/
> > > An Architect's View --
http://corfield.org/
>
> > > "If you're not annoying somebody, you're not really alive."
> > > -- Margaret Atwood
>
> > --
> > ===========================================================================
> > Raymond Camden, ColdFusion Jedi Master
>
> > Email :
r...@camdenfamily.com
> > Blog :
www.coldfusionjedi.com
> > AOL IM : cfjedimaster
>
> > Keep up to date with the community:
http://www.coldfusionbloggers.org
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "Object-Oriented Programming in ColdFusion" group.
> > To post to this group, send email to
coldfu...@googlegroups.com.
> > To unsubscribe from this group, send email to
> >
coldfusionoo...@googlegroups.com<coldfusionoo%2Bunsubscribe@google
groups.com>
> > .