i think the attribute singleton="true" in your bean definition should take
care of it?
On 26/11/2007, Mike Kear <[EMAIL PROTECTED]> wrote:
>
> I am really enjoying the way coldspring has taken care of a lot of the
> details of getting components instantiated correctly.
>
> My habit in the past has been ot instantiate all the components a page
> requires at the top of the page, which of course is not the best way to do
> things. As you've advised me here, my fear that putting CFCs into shared
> scopes would end up filling the RAM in a shared host is unfounded.
>
> But how to instantiate a cfc as a singleton?
>
> Should I do this in the application.cfc onApplicationStart() method?
>
> <cfset application.catalogDAO=application.beanfactory.getBean
> ("catalogDAO")
> />
>
> Or is there a coldspring-automated way of doing it?
>
> 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
>
>
>
>
>
>