Don't forget that if you use UDFs in the Server scope you have to lock.
<CFLOCK SCOPE="Server" TYPE="ReadOnly" TIMEOUT=30>
<CFSET X = Server.Foo(Y)>
</CFLOCK>
(you would also Exclusive lock the initial copy as well)
It is NOT recommended that you use the server scope for storing UDFs. You
can - but shouldn't.
p.s. I'll plug my own site here - for some cool examples of UDFs, check out
www.cflib.org (soon to to be relaunched with a new design).
=======================================================================
Raymond Camden, Principal Spectra Compliance Engineer for Macromedia
Email : [EMAIL PROTECTED]
ICQ UIN : 3679482
"My ally is the Force, and a powerful ally it is." - Yoda
> -----Original Message-----
> From: Bryan LaPlante [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 11, 2001 1:39 PM
> To: CF-Talk
> Subject: Re: Define and Call UD-Functions
>
>
> There is a tutorial you can download from the KCfusion (Cold Fusion user
> group in Kansas city) that shows you how to package udf's and
> load them once
> per life of the server if you choose the server scope. The
> tutorial says you
> can use any scope you want.
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists