Been a while since I did this, but my understanding is that calling
the remote proxy is outside of the Mach-II framework, so you have to
add these lines to your onApplicationStart() or init routine, to put
your beanFactory into the application scope:
<cfset application.serviceDefinitionLocation =
expandPath("/config/services.xml.cfm") />
<cfset application.beanFactory = createObject("component",
"coldspring.beans.DefaultXmlBeanFactory").init(structNew()) />
<cfset
application.beanFactory.loadBeansFromXmlFile(application.serviceDefinitionLocation)
/>
...now, why the parameter 'placeFactoryInApplicationScope' in your
ColdSpring property doesn't do this for you I can't remember, unless
the application has timed out and you're hitting the facade perhaps
BEFORE a request has been made against a regular Mach-II URL, giving
Mach-II a chance to do that for you. ...or perhaps you have another
application.cfc/cfm in your flinders.webapps.edss.models.proxies path
somewhere that's setting up a different context for the application
scope for remoting?
On Wed, Sep 16, 2009 at 9:10 PM, jarthel <[email protected]> wrote:
>
> When I ran my remote proxy via:
> --------
> <cfselect name="committee"
> bind="cfc:flinders.webapps.edss.models.proxies.remoteListsService.getListsArray
> ('committees', 'all', '')" bindonload="true" class="normal" />
> -------
>
> I always get an error message: Sorry, a ColdSpring BeanFactory named
> beanFactory was not found in application scope.
>
> I find this weird since I have this code:
> -------
> <cfif structKeyExists(application, "beanFactory")>
> <cfmail to="email-address-here" from="email-address-here"
> server="post-server-here" subject="test" type="html">
> beanfactory exists
> <cfdump var="">
> <cfoutput></cfoutput>
> </cfmail>
> <cfmail to="email-address-here" from="email-address-here"
> server="post-server-here" subject="test">
> <cfdump var="#application#">
> <cfoutput></cfoutput>
> </cfmail>
> </cfif>
> ----------
> in my view file and I am receiving emails from this code.
>
> Can you please help? I have included my CS settings (which is in
> another xml file and included via the include). I have attached the
> dump of #application#.
>
> Thank you for the help :)
>
> Jayel
>
> -----------------------------------------
> #application#: http://rapidshare.com/files/281122776/application-dump.html
>
> contents of coldspringProperty.xml
> -----------
> <mach-ii>
> <properties>
> <property name="coldspringProperty"
> type="MachII.properties.ColdspringProperty">
> <parameters>
> <parameter name="configFile"
> value="config/coldspring.xml" />
> <parameter name="dsn" value="ethicsdss" />
> <parameter name="beanFactoryPropertyName"
> value="beanFactory"/>
> <parameter name="configFilePropertyName"
> value="ColdSpringComponentsLocation" />
> <parameter name="configFilePathIsRelative"
> value="true"/>
> <parameter
> name="placeFactoryInApplicationScope" value="true" />
> </parameters>
> </property>
> </properties>
> </mach-ii>
> -----------
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to Mach-II for CFML list.
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/mach-ii-for-coldfusion?hl=en
SVN: http://greatbiztoolsllc.svn.cvsdude.com/mach-ii/
Wiki / Documentation / Tickets:
http://greatbiztoolsllc.trac.cvsdude.com/mach-ii/
-~----------~----~----~----~------~----~------~--~---