I've been using fusebox 4.1 for a couple of months now and have yet to 
find or see a good example of cfc's in Fusebox.  You can put a <class> 
and <invoke> tags in your circuit files?  Whats the syntax for doing 
this?  I use cfc's in my fusebox apps, more for the sake of using them 
than anything else.  I use a cfc in a couple of my display fuses to 
format text, which should most likely be a UDF, just wanted to use a cfc.

So if anyone has a simple app where cfc's are used correctly in a 4.1 
application I would love to see it.  Thanks!

Mark Kecko
Technology Director
MediaPost Communications
[EMAIL PROTECTED]
212-204-2002

> 
> 
>>> Sean Corfield wrote:
>>>
>>>>On Fri, 18 Mar 2005 18:18:02 +0530, Michael Traher
>>>><[EMAIL PROTECTED]> wrote:
>>>>  
>>>>
>>>>>Use fusebox.init.cfm to instantiate where required. Then use <invoke>
>>>>>in circuits.xml.
>>>>>
>>>>>Use <class> in fusebox.xml together with <instantiate> and <invoke> in
>>>>>circuits.xml.
>>>>>    
>>>>>
>>>>
>>>>I alternate between these two. The former has the benefit of allowing
>>>>a simple <cfif> / <cflock> / <cfif> for initialization. The latter has
>>>>the benefit of keeping it all 'in' Fusebox. The downside of the
>>>>latter, as you surmise, is locking is harder - but you could always
>>>>use John Beynon's lock verb, taking advantage of the custom lexicon
>>>>'alpha feature'...
>>>>
>>>>  
>>>>
>>>>>control of locking if I wanted to place my object in a persistent
>>>>>scope.
>>>>>    
>>>>>
>>>>
>>>><soapbox>
>>>>Pet peeve: they are *shared* scopes, not persistent scopes. Persistent
>>>>means database or filesystem. If CFers want to be taken seriously in
>>>>the broader IT world they need to stop misusing words and phrases that
>>>>have well-defined meanings.
>>>></soapbox>
>>>>
>>>>  
>>>>
>>>>>I've also had the idea of sort of combining the use of <class> with
>>>>>the fusebox.init.cfm file and using the application.fusebox.classes
>>>>>structure to do my instantiating - i.e. getting the benefit of this
>>>>>central variable, but keeping more control of the creating of objects.
>>>>>    
>>>>>
>>>>
>>>>Resist the temptation. If you're keen to use <class>, do the locking
>>>>in Fusebox too.
>>>>  
>>>>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

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