I also believe the actual proxy CFC code should only be generated once. However, since I haven't used AOP with a non-Singleton ColdSpring-managed object, I am not 100% sure. Are you sure what you want to do can't be handled with a Singleton using AOP (that internally may interact with a per-request CFC), rather than a per-request CFC for everything?
The only "performance issue" with using ColdSpring for per-request CFCs is the overhead that ColdSpring goes through checking for any dependencies that need to be wired up. ColdSpring internally caches all of the bean definitions and their dependencies internally, so the overhead is fairly minimal. However, if performance is an issue and you are trying to generate large numbers of per-request CFCs, you're probably better off writing your own factory to create them (and have ColdSpring inject the factory into the service objects that need to use it). On 10/4/07, Barney Boisvert <[EMAIL PROTECTED]> wrote: > > Proxy generation should happen once per class, not once per instance, > but I'm not 100% sure of that. Obviously instantiation is per > instance, but actually creating and writing the dynamic CFC should be > a one-shot deal. As such, the performance overhead shouldn't > significantly more with CS AOP compared with CS sans AOP, at least > once the app gets going. > > Of course, as you point out, there are already some inherent > performance issues with using CS, regardless of AOP (and really CFC > instantiation in general). The only way you're going to be able to > tell for sure is to write up some example code and do performance > testing on it. > > cheers, > barneyb > > On 10/4/07, henry ho <[EMAIL PROTECTED]> wrote: > > Hi all, > > > > I understand that Coldspring is not designed for Transient BO, but I > need to do some AOP on mine to control access privilege. > > > > Looking through some of the source code, seems like doing AOP is slow > enough because of the IO required to write the actual proxy cfc. Together > with the performance penalty we get when we use Coldspring singleton=false, > will this be a nightmare? > > > > I heard of Lightware as a better IoC for Transient BO, but it has no > AOP... > > > > Any idea how to do AOP on Transient BO efficiently with or without > ColdSpring? > > > > Thanks, > > Henry > > > > > -- > Barney Boisvert > [EMAIL PROTECTED] > http://www.barneyb.com/ > > Got Gmail? I have 100 invites. > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Enterprise web applications, build robust, secure scalable apps today - Try it now ColdFusion Today ColdFusion 8 beta - Build next generation apps Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290247 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

