Sean,

Thanks for the valuable info.  I took your advice and modified my files.  I 
started by downloading John B's custom lexicon for <lock>.  Let me know if I 
used it correctly.

Thanks,
Ali

For the benefit of those who requested the code:
You can get that from here:
http://www.beynon.org.uk/index.cfm?fuseaction=blog.show&mode=cat&catid=150F8010-802D-00D5-771B901DC9E57E87

You have to create a lexicon folder under your App folder and then create a 
subdirectory under lexicon (in my example it's named "aa") and then copy 
"lock.cfm" there.
e.g.
/YourApp
  /lexicon
    /aa
      lock.cfm
So in my revised edition, forget about myGlobals.cfm completely (at least as 
far as setting an 'appInitialized' variable is concerned.

In this example, the only affected files are fusebox.xml.cfm and 
controller/circuit.xml.cfm

-------fusebox.xml.cfm------------------
<!-- after following the instructions above to grab JohnB's custom lexicon 
add the following snippet, after your <class></class> section 
note that the namespace is the subfolder underneath the lexicon folder 
-->
<lexicons>
   <lexicon namespace="aa" path="aa/"/>
</lexicons>

------controller/ciruit.xml.cfm-----------
<prefuseaction>
   <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" />
</prefuseaction>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
All-in-one: antivirus, antispam, firewall for your PC and PDA. Buy Trend Micro 
PC-cillin Internet Security
http://www.houseoffusion.com/banners/view.cfm?bannerid=60

Message: http://www.houseoffusion.com/lists.cfm/link=i:12:6705
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