If as you say this library is "server wide" then I say go for it :) But make
sure and check to see if it already exists and only instantiate it once -
othewise whats' the point?

-mark


-----Original Message-----
From: Baz [mailto:[EMAIL PROTECTED]
Sent: Sunday, February 19, 2006 4:25 PM
To: CF-Talk
Subject: SERVER scope


Hi,

I have a CFC that I use across all applications. It's basically a global UDF
library that stores no data.

Is it ok to store this CFC in the SERVER scope rather than the application
scope? Is using a named lock for this ok:

<cflock name="ServerUtils" type="exclusive">
   <cfset Server.Utils=createObject('Component','SystemUtils') />
</cflock>

Cheers,
Baz






~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232878
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to