It would be even better though to let the CFC worry about the locks -
ie, put the lock in the method.

=======================================================================
Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc

Email    : [EMAIL PROTECTED]
WWW      : www.camdenfamily.com/morpheus
Yahoo IM : morpheus

"My ally is the Force, and a powerful ally it is." - Yoda 

> -----Original Message-----
> From: Jochem van Dieten [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, December 12, 2002 8:45 AM
> To: CF-Talk
> Subject: Re: CFC's in the application Scope
> 
> 
> Quoting [EMAIL PROTECTED]:
> > 
> > If I stored a component instance in the application scope:
> > 
> > <cfobject component = "lfcomponents.lfinsert_record" name =
> > "application.ComponentInstance.lfInsertData">
> > 
> > Would I need to lock each usage of it, when used like this 
> <cfinvoke 
> > component="#application.ComponentInstance.lfInsertData#"....>
> 
> Only against race conditions.
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com

Reply via email to