Yea, this is a pita. The way I tend to handle this is to first off use a parent bean factory to define all my beans except for Model-Glue specific beans. I then load that bean factory in my application.cfc. I wrap this code in logic such that if I pass in init=true via the url (whatever these values are for Model-Glue) that the BeanFactory reloads before Model-Glue reloads. This should cause the remote services to be regenerated.
Honestly, even if you have these defined in Model-Glue's coldspring.xml, they should be regenerated each time you reload the application because MG reloads its beanfactory when you do that. So.... having typed this, maybe I'm not talking about the right thing.... Doug Hughes, President Alagad Inc. [email protected] 888 Alagad4 (x300) Direct: 651 Alagad4 (651-252-4234) Fax: 888-248-7836 On Wed, Mar 24, 2010 at 9:19 AM, Sir Rawlins < [email protected]> wrote: > Hello Guys, > > I'm trying to configure a remote proxy in ColdSpring within an MG > application. The bean definition looks like so: > > <bean id="remoteOrderService" > class="coldspring.aop.framework.RemoteFactoryBean" lazy- > init="false"> > <property name="target"> > <ref bean="orderService" /> > </property> > <property name="serviceName"> > <value>OrderService</value> > </property> > <property name="relativePath"> > <value>/api</value> > </property> > <property name="remoteMethodNames"> > <value>createOrder</value> > </property> > <property name="beanFactoryName"> > <value>beanFactory</value> > </property> > </bean> > > Now, it appears that the issue with this is that the target service > object is cached in the application scope outside of the model glue > bean factory, so when I make a change to the code on the CFC and > reinit the MG application the changes are not propagated to my remote > proxies and I have to restart the server every time *rolls eyes* > > Can anyone explain how I can configure this remote proxy to work with > the same bean factory as model glue? > > Thanks, > > Rob > > -- > 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]<model-glue%[email protected]> > For more options, visit this group at > http://groups.google.com/group/model-glue?hl=en > > To unsubscribe from this group, send email to model-glue+ > unsubscribegooglegroups.com or reply to this email with the words "REMOVE > ME" as the subject. > -- 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 To unsubscribe from this group, send email to model-glue+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
