ok, after "umpteen" tries.
Here's the correct 2nd fuseaction from the controller/circuit.xml.cfm
<fuseaction name="setupCFC" access="private">
<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" />
</fuseaction>
> On Apr 8, 2005 10:30 AM, Ali Awan <[EMAIL PROTECTED]> wrote:
> > Taking Sean's and John's advice I got rid of my prefuseaction in the
> controller circuit, and instead use a globalfuseaction to initialize.
> Here's the updated code:
>
> Close. Your lock is in the wrong place for thread safety. Remember
> that it's if-lock-if - you have if-if-lock. Your second fuseaction
> should have the lock surrounding the if, not inside it.
>
> > <fuseaction name="setupCFC" access="private">
> > <if condition="NOT StructKeyExists(application,
> 'appInitialized')">
> > <true>
> > <aa.lock mode="start"
> type="exclusive" scope="application" />
> > <instantiate
> object="application.statesManager"
> >
> class="States"
> >
> arguments="request.
DSN1"/>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:6718
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