Set lazyload to true in ColdSpring, and it'll only load the DAOs when they
are required. Honestly, though instantiating 20-30 extra beans on
application load isn't going to have that much of an impact so I wouldn't be
worrying about that right now.

Best Wishes,
Peter


On 11/3/07 8:18 PM, "Mike Kear" <[EMAIL PROTECTED]> wrote:

> So here's a related question.    If DAOs are singletons, that's cool, I
> understand that and why you'd do that.
> 
> Across my admin application I might have a couple of dozen DAOs, some of
> which would be used maybe once a month or less, others used all day every
> day.   I'm not sure instantiating them all at application start is a
> brilliant idea (or is it?) so if it's a bad idea to instantiate them at the
> top of the page that uses them,  where should I instantiate them?
> 
> Cheers
> Mike Kear
> Windsor, NSW, Australia
> 0422 985 585
> Adobe Certified Advanced ColdFusion Developer
> AFP Webworks Pty Ltd
> http://afpwebworks.com
> Full Scale ColdFusion hosting from A$15/month
> 
> 
> 
> 




Reply via email to