Ok, so I implemented the lock as you said, now my code which <invoke>'s the 
cfc's is breaking.

It did not break before the locks.  So I don't know if it is some side effect, 
or if my code was flawed to begin with.

I checked the generated parsed file and found something interesting.

Here is my circuit.xml:
<prefuseaction>
                <if condition="NOT 
StructKeyExists(application,'appInitialized')">
                                <true>
                                        <aa.lock mode="start" type="exclusive" 
scope="application" />
                                                <if condition="NOT 
StructKeyExists(application,'appInitialized')">
                                                <true>
                                                <instantiate 
object="application.statesManager" 
                                                                         
class="States" 
                                                                         
arguments="request.DSN1"/>
                                                <instantiate 
object="application.dmsManager" 
                                                                         
class="Customers" 
                                                                         
arguments="request.DSN2"/>
                                                <instantiate 
object="application.vinManager" 
                                                                         
class="VIN" 
                                                                         
arguments="request.DSN4"/>
                                                <instantiate 
object="application.dealerManager" 
                                                                         
class="Dealer" 
                                                                         
arguments="request.DSN1"/>
                                                <instantiate 
object="application.ratingsManager" 
                                                                         
class="Rating" 
                                                                         
arguments="request.DSN1"/>
                                                <instantiate 
object="application.policyManager" 
                                                                         
class="Policy" 
                                                                         
arguments="request.bcc,request.DocsFolderGA,request.GAReportingFile,request.GAIDCard,request.GAEvidenceOfIns,request.GASorryFile"/>
                                                <instantiate 
object="application.policyNumberManager" 
                                                                         
class="PolicyNumber" 
                                                                         
arguments="request.DSN1"/>
                                                <set 
name="application.appInitialized" value="1"/>
                                                </true>
                                                </if>
                                        <aa.lock mode="end" />
                                </true>
                        </if>
                
        </prefuseaction>

This is the generated CFM of the if-lock-if you posted:

<cfif NOT StructKeyExists(application,'appInitialized')>
        <!--- main.selectCustomer: <aa:lock type="exclusive" 
scope="application" mode="start"> --->
        <cflock timeout="10" scope="application" type="exclusive">
                <!--- main.selectCustomer: <fusebox:if condition="NOT 
StructKeyExists(application,'appInitialized')"> --->
                <!--- generated by fuseQ[11]  UNKNOWN VERB: if --->
                <!--- main.selectCustomer: <aa:lock mode="end">                 
                  --->
        </cflock>
        <!--- main.selectCustomer: <fusebox:conditional mode="else">            
          --->
<cfelse>
        <!--- main.selectCustomer: <fusebox:conditional mode="end">             
          --->
</cfif>

Firstly, in the comments it claims that there is an "unknown verb: if"
Secondly, it is not <instantiate>-ing anything.

Any thoughts?

Thanks,
Ali

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:12:6712
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/12
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:12
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.12
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to