If you are going to put initialization code like this in your  
Application.cfm file, just be sure that you do not use any code that  
can generate another HTTP request for another CFM file (such as a  
cfhttp tag) as you may either create an infinite loop (with a readonly  
lock) or a deadlock (with an exclusive lock) because your  
Application.cfm file will keep getting invoked.

Christian

On Monday, January 13, 2003, at 02:01 PM, Mike Alberts wrote:

> Ok, I thought I had the locking thing squared away, but after reading  
> this thread, I realize that I do not. I was not aware of the potential  
> problems of using an exclusive lock in the Application.cfm file.
>
> So ... is this (psuedo) code a reasonable solution?
>
> Open readonly lock
>
>  If NOT IsDefined(SomeApplicationVariable)
>
>   cfinclude template = "file to initialize app variables"
>
>  close cfif
>
> close readonly lock
>
> Mike
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to