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 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