I tested my theory out and it doesn't work. I tried instantiating DefaultXmlBeanFactory in the Request scope in one app, then in another that did not have it in the path and it failed. Nothing special. Do your apps share a common directory structure? Is ColdSpring installed elsewhere in ColdFusion's search path? Does your Application.cfc declare any mappings that might cause ColdSpring to be within the path?
On Thu, Apr 7, 2011 at 11:04 AM, UniDyne <[email protected]> wrote: > They run from the same Java runtime. My guess is that once the object > is instantiated, the compiled version is in the runtime search path. I > actually ran into a similar issue in a non-CF project on Jetty. If > each app had its own Java instance, this probably wouldn't happen. The > solution would be to make sure they are namespaced and the accessors > are not public. Not exactly possible with ColdSpring. > > Darien Brown > > On Thu, Apr 7, 2011 at 10:15 AM, Doug <[email protected]> wrote: >> No, unfortunately not. My non-Mach-II test app actually initializes >> the beanFactory into Request scope, and the same behavior appears. >> >> I'll post what I learn when I fix it. >> >> Thanks, >> >> Doug >> >> On Apr 6, 6:01 pm, "Peter J. Farrell" <[email protected]> wrote: >>> Nothing rings a bell other than accidentally sharing the application >>> scope. Are you sharing the application name scope across the apps? >>> >>> .pjf >>> >>> Doug said the following on 04/06/2011 05:33 PM: >>> >>> > I setup two small skeleton apps that don't use Mach-II. First, I >>> > tested to see if there was a bug in ACF 8 by not using ColdSpring, but >>> > found that the dependencies were resolved, or not resolved, correctly. >>> > Then, I manually instantiated the ColdSpring DefaultXmlBeanFactory >>> > into request scope in each app. I found that App A was again able to >>> > instantiate a CFC that it shouldn't be able to see, only after it was >>> > instantiated in App B. >>> >>> -- >>> Peter J. Farrell >>> [email protected] >>> [email protected]http://blog.maestropublishing.com >>> Identi.ca / Twitter: @maestrofjp >> >> -- >> To post to this group, send email to [email protected] >> For more options and to unsubscribe, visit this group at >> http://groups.google.com/group/mach-ii-for-coldfusion?hl=en >> >> SVN: http://svn.mach-ii.com/machii/ >> Wiki / Documentation / Tickets: http://trac.mach-ii.com/machii/ >> > -- To post to this group, send email to [email protected] For more options and to unsubscribe, visit this group at http://groups.google.com/group/mach-ii-for-coldfusion?hl=en SVN: http://svn.mach-ii.com/machii/ Wiki / Documentation / Tickets: http://trac.mach-ii.com/machii/
