Hi Jaime,

As far as I am aware, you're exactly right that the shared bean
factory would need to be created outside the context of Model-Glue and
passed in as a parent bean factory in the manner you described. To the
best of my knowledge, this really *shouldn't* have been working in MG
2 without being set up in this manner.

--
Ezra Parker


On Tue, Jan 5, 2010 at 2:41 PM, Jamie Jackson <[email protected]> wrote:
> Hi Folks,
>
> I've been away from CF for a while, so I'm rusty, but one of my old
> apps (MG2) is now failing. However, now that I'm trying to debug, I
> can't figure out how it ever worked. Seems it shouldn't work at all,
> but that's not possible. (It's been running for maybe a year.)
>
> I'm using a shared bean factory for some remote flex proxy services
> (see ColdSpring snippet at end). It's supposed to be available as
> application.sharedBeanFactory. I think I was probably doing something
> similar (or exaclty the same?) as Joe's
> http://www.firemoss.com/index.cfm/2008/4/15/Sharing-MG-ColdSpring-Beans-With-Other-Applications
>
> However, I can't find anywhere where this variable is actually set,
> and from what I gather/remember, a shared bean factory (in my case,
> application.sharedBeanFactory) had to be managed manually. I've
> searched my code for "sharedBeanFactory," and all I can find is reads,
> but no sets. Further, my index.cfm _doesn't_ have any sort of "<cfset
> ModelGlue_PARENT_BEAN_FACTORY = application.sharedBeanFactory />", so
> I'm totally confused.
>
> Was this built-into M-G, at some point? How could this sucker have been 
> working?
>
> Thanks,
> Jamie
>
> --------------------------
>
> ColdSpring snippet: (I've got several of these CS-managed remote services.)
>
>        <bean id="imsUserServiceFlexRemote"
> class="coldspring.aop.framework.RemoteFactoryBean" lazy-init="true">
>                <property name="target">
>                        <ref bean="imsUserServiceFlex" />
>                </property>
>                <property name="serviceName">
>                        <value>UserServiceFlex</value>
>                </property>
>                <property name="relativePath">
>                        <value>/childwelfare/wwwroot/cfc/ims/</value>
>                </property>
>                <property name="remoteMethodNames">
>
> <value>login,logout,getCurrentUserInfo,getUser,loginTemp,loginVOArray</value>
>                </property>
>                <property name="beanFactoryName">
>                        <value>sharedBeanFactory</value> <!-- HERE'S
> THE REFERENCE -->
>                </property>
>                <property name="interceptorNames">
>                        <list>
>                                <value>flattenObjectAdvisor</value>
>                                <value>voArrayMetaDataAdvisor</value>
>                        </list>
>                </property>
>        </bean>
>
> --
> 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