All, 

I've written a CFX Tag which implements some code that can only be execute
once per Virtual Machine. Since Cold Fusion uses only one Virtual Machine
per server only one person can execute this tag at a time. To facilitate
this I've wrappen the CustomTag in a CFLOCK. This Should keep this customer
tag single-threaded. However, on execution when i submit two reqwuests for
the same page at the same time one screen gets a result and the other screen
doesn't get anything. When i go through the logs it appears that only one
request gets adhered, the other one crashes the server. This seems strange
to me when the CFLOCK should single-thread the execution. please note that
i've tried both SCOPE and NAME attributes on the CFLOCK tag. 

                <CFTRY>
                                <CFLOCK 
                                    TIMEOUT="90"
                                    SCOPE="Application" 
                                    THROWONTIMEOUT="Yes"
                                    TYPE= "Exclusive"> 
                                        
                                        <CFX_Qualify_DSLv2
                                              NUMBER="#lqs_number#"
                                              USERNAME="username"
                                              PASSWORD="password"
                                           NAME="Qualify" >
                                  </CFLOCK>
                                  <CFCATCH>
                                  Could Not Execute This page, Sorry
                                  </CFCATCH>
                </CFTRY>

Leon Oosterwijk

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to