Its definitely useful to use ColdSpring to inject service layer CFCs into your controllers, but I believe that Model-Glue does this automatically anyway using the autowire feature. If Model-Glue sees a setter in the controller CFC with a name that matches a ColdSpring bean name, it should set it for you. Hope that helps.
Brian On 2/28/07, Robert Rawlins <[EMAIL PROTECTED]> wrote: > > Hey Guys, > > I'm looking for a few tips on whether I should be using ColdSpring to > inject beans into my Controller class, my fear is that if I have a whole > bunch of setter methods inside my controller layer, with every call to my > controller CS will push in a load of new bean instances and we're going to > end up with performance problems, is that right? > > I would be very interested to hear how you guys deal with instanstation > inside your controller methods for beans in the model layer. > > Whilst we're talking performance and ColdSpring, maybe you could explain > the deal with the Auto-Wire feature, should I, as a 'best practice' be hand > coding the bean relationships rather than relying on the autowire feature to > be doing it for me? how much longer does it take CS to calculate its > autowire relationships. > > Many thanks, > > Rob > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Create Web Applications With ColdFusion MX7 & Flex 2. Build powerful, scalable RIAs. Free Trial http://www.adobe.com/products/coldfusion/flex2/ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:271003 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

