Sorry man, it sounds like you are on the right path to fix it by hardcoding the 
scope reference. 

It sounds like you aren't doing it early enough in the MG loading process to 
make all of your code happy. 

I'm never going to recommend hacking MG because it'll just compound issues 
going further.

It's possible I could do a screenshare session with you to get a better idea of 
the full issue. If you get stuck making this work without altering core MG 
files, let me know and we'll try to work out the screen share session.

DW

Sent from a mobile. Please excuse brevity and typos. 

-----Original Message-----
From: Ryan Stille <[email protected]>
Sender: [email protected]
Date: Wed, 4 May 2011 06:45:38 
To: model-glue<[email protected]>
Reply-To: [email protected]
Subject: [Model-Glue] Re: Upgrading model glue for performance - but it
 gotalot slower

So.... is there any solution to this other than going back and
changing all my code?  Might have to hack into MG and make that
MYAPP_GLUE.FRAMEWORK key exist?

My simple fix of putting this in my index.cfm file:
<cfif IsDefined("application.myapp_glue")>
        <cfset application.myapp_glue.framework =
application.myapp_glue />
</cfif>

causes some errors when I first reinit. I have to reload the page a
2nd time to get everything to work.

Thanks,
-Ryan

On Apr 26, 2:50 pm, "Dan Wilson" <[email protected]> wrote:
> Ahh right.
>
> I can see why you chose to do it that way. A more encapsulated way would have 
> been to make a BeanFactoryLookup object which would hold the only reference 
> to your hard coded scope path. This concept may serve as an intermediate step 
> for you to refactor if you chose.
>
> On to your use case, MG3 has the notion of a RemotingService which may be of 
> use to you. Take a look at the documentation 
> here:http://docs.model-glue.com/wiki/HowTos/HowToUseRemoting#Remoting
>
> DW
> Sent from a mobile. Please excuse brevity and typos.
>
>
>
>
>
>
>
> -----Original Message-----
> From: Ryan Stille <[email protected]>
>
> Sender: [email protected]
> Date: Tue, 26 Apr 2011 12:31:20
> To: model-glue<[email protected]>
> Reply-To: [email protected]
> Subject: [Model-Glue] Re: Upgrading model glue for performance - but it got
>  alot slower
>
> We use this technique in our "facades" which are remotely available
> CFCs, basically web services. Some are used by in-house windows apps,
> others are used on our ColdFusion pages for dynamic data, like a
> <select> control thats bound to the contents of another <select>
> control, as in:
>
> <cfselect id="billingLocality" name="billingLocality"
> bind="cfc:public.RegionFacade.getRegions(country = {billingCountry})">
>
> The getRegions method in RegionFacade.cfc might look something like:
>
> <cffunction name="getRegions" output="false" access="remote">
>         <cfargument name="blah1" type="any" required="false" default="0">
>         <cfargument name="blah2" type="any" required="false" default="0">
>
>         <cfset var RegionService =
> application.myapp_glue.framework.getBeanFactory().getBean("RegionService") /
>
>         <cfreturn RegionService.getRegions(argumentCollection = Arguments) />
> </cffunction>
>
> On Apr 26, 2:03 pm, "Dan Wilson" <[email protected]> wrote:
> > Can you explain why you might be reaching into the application scope to 
> > find MG?
>
> > DW
>
> > Sent from a mobile. Please excuse brevity and typos.
>
> --
> Model-Glue Sites:
> Home Page:http://www.model-glue.com
> Documentation:http://docs.model-glue.com
> Bug Tracker:http://bugs.model-glue.com
> Blog:http://www.model-glue.com/blog
>
> You received this message because you are subscribed to the Google
> Groups "model-glue" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group 
> athttp://groups.google.com/group/model-glue?hl=en

-- 
Model-Glue Sites:
Home Page: http://www.model-glue.com
Documentation: http://docs.model-glue.com
Bug Tracker: http://bugs.model-glue.com
Blog: http://www.model-glue.com/blog

You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en

-- 
Model-Glue Sites:
Home Page: http://www.model-glue.com
Documentation: http://docs.model-glue.com
Bug Tracker: http://bugs.model-glue.com
Blog: http://www.model-glue.com/blog

You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en

Reply via email to