Thanks for the reply.

Would I be right in saying that the <class> entries are only documentary?

Or are you in some way using these entries when you instantiate the CFC's?

Just curious.

On Apr 6, 2005 4:20 PM, Ali Awan <[EMAIL PROTECTED]> wrote:
> Hi Michael,
> 
> I may already be too late, if you have already started down a specific path.
> I'm no authority on FB4.1 or CF.  However, I converted a non-FB app at my 
> present company to a FB4.1 app using CFC's entirely for the business logic, 
> and this is what I did.
> 
> A quasi-combination of options 2&3 that you have listed below.
> I used <class> in Fusebox.xml file.
> 
> Then what I mean by "quasi" for option 2 is that I don't use the fusebox.init 
> file.  I still use the Globals plugin (leftover from FB4) to set all my 
> global variables and I set/check an application variable call 
> "appInitialized".  If it does not exist, it is initialized to zero.
> 
> Then in my circuit.xml file for my controller (I use the MVC framework, so I 
> have a controller folder), I have a prefuseaction that checks for the 
> appInitialized variable.  If appInitialized is 0, then I <instantiate> all my 
> CFC's.
> 
> This seems to work pretty well for me and the app runs smoothly.  The CFC's 
> are getting instantiated all over the place unnecessarily.
> 
> Hope this helps.
> Email me if you want the example code for the xml files.
> 
> Ali
> >We are upgrading from 3 to 4.1.
> >
> >I am trying to figure out the best way to create and invoke cfc methods.
> >
> >The options seem to be - ignore fb4 stuff and do this myself within fuses.
> >
> >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 like this last one because if my cfc's move to another folder I can
> >just change the fusebox.xml.  However I'm concerned that I have lost
> >control of locking if I wanted to place my object in a persistent
> >scope.
> >
> >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.
> >
> >Any thoughts or advice on that lot!
> >
> >Mike
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:6698
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