Chirs, when I call <cfset application.factory.getBean("contactServiceRemote")
/> it throws a bean not found exception.
it's declared in services.xml as
<bean id="contactService_remote" class="
coldspring.aop.framework.RemoteFactoryBean">
<property name="target"> <ref bean="contactService" />
</property>
<property name="serviceName">
<value>contactServiceRemote</value> </property>
<property name="beanFactoryName"> <value>factory</value>
</property>
<property name="relativePath"> <value>/mocca/contact</value>
</property>
<property name="remoteMethodNames"> <value>get*</value>
</property>
</bean>
but when I just load CS I get some ( actually 10 !)
coldspring.beanDefException all regarding "contactService_remote":
property requested (BeanFactoryScope) does not exist for bean:
contactService_remote
property requested (ServiceLocation) does not exist for bean:
contactService_remote property requested (AbsolutePath) does not exist for
bean: contactService_remote property requested (FlashUtilityService) does
not exist for bean: contactService_remote
property requested (Id) does not exist for bean: contactService_remote
property requested (Singleton) does not exist for bean:
contactService_remote
property requested (BeanFactory) does not exist for bean:
contactService_remote
property requested (InterceptorNames) does not exist for bean:
contactService_remote
property requested (interceptorNames) does not exist for bean:
contactService_remote
and last:
constructor-arg requested (configuration) does not exist for bean: transfer
I'm using transfer as ORM. But on the other hand all cfm-testcripts work as
exspcted.
Daniel
--
www.danielschmid.name
On 8/14/07, Chris Scott <[EMAIL PROTECTED]> wrote:
>
> Try changing this getBean call from:
> <!--- setup coldspring bean factory --->
> <cfset defaultProperties = structNew()/>
> <cfset defaultProperties.dsn = 'mocca'/>
> <cfset application.factory = createObject("component","
> coldspring.beans.DefaultXmlBeanFactory
> ").init(defaultProperties=defaultProperties)/>
> <cfset application.factory.loadBeansFromXmlFile
> (expandPath("/mocca/app/config/services.xml"),true)/>
> <cfset application.factory.getBean("contactService_remote") />
>
> to
>
> <cfset application.factory.getBean("contactServiceRemote") />
>
> However, it's possible that either MG is wiping out the bean factory your
> are trying to create, or maybe you need to update to the latest BER.
>
>
>
> Chris Scott
> [EMAIL PROTECTED]
> http://cdscott.blogspot.com/
> http://www.coldspringframework.org/
>
>
>
>
>
>
>
>
> On Aug 13, 2007, at 1:52 PM, Brian Kotek wrote:
>
> <!--- setup coldspring bean factory --->
> <cfset defaultProperties = structNew()/>
> <cfset defaultProperties.dsn = 'mocca'/>
> <cfset application.factory = createObject("component","
> coldspring.beans.DefaultXmlBeanFactory
> ").init(defaultProperties=defaultProperties)/>
> <cfset application.factory.loadBeansFromXmlFile
> (expandPath("/mocca/app/config/services.xml"),true)/>
> <cfset application.factory.getBean("contactService_remote") />
>
>
>
<<inline: TeamFusionD.gif>>
