Yo David,

You misspelled 'serviceName' as 'servicName' in your RemoteFactoryBean.

Chris


On May 15, 2007, at 10:10 AM, Farr, David wrote:

I seem to be missing a important concept here.

Here is my cml file

<cfsetting showdebugoutput="true">
<cfset serviceDefinitionLocation = ("e:/webdoc/FungalDatabasesFlex/Specimen/XML/remotexml.xml")>
<cfset myBeanFactory = createObject("component","coldspring.beans.defaultxmlBeanFactory").init()/>
<cfset myBeanFactory.loadBeansFromXmlFile(serviceDefinitionLocation,true)>
<cfset myStuff = myBeanFactory.getBean("remoteSpecimenObj")>


Generates this error:
The method 'setservicName' could not be found in component E:\Webdoc\coldspring\aop\framework\RemoteFactoryBean.cfc.

This is the remotexml file

<?xml version="1.0" encoding="UTF-8"?>
<beans>


    <bean id="remoteSpecimenObj" class="coldspring.aop.framework.RemoteFactoryBean">
        <property name="target">
            <ref bean="specimenObj" />
        </property>
        <property name="remoteMethodNames">
            <value>*</value>
        </property>
        <property name="servicName">
            <value>remoteSpecimenObj</value>
        </property>
        <property name="absolutePath">
            <value>e:/webdoc/fungaldatabasesflex/specimen/cfc/</value>
        </property>
    </bean>


<bean id="specimenObj" class="fungaldatabasesFlex.Specimen.Service.specimenObj">
    <constructor-arg name="tblSciNameGateway">
        <ref bean="tblSciNameGateway"/>
    </constructor-arg>
    <constructor-arg name="tblHostNameGateWay">
        <ref bean="tblHostNameGateway"/>
    </constructor-arg>
    <constructor-arg name="tblSpecimenGateWay">
        <ref bean="tblSpecimenGateWay"/>
    </constructor-arg>
    <constructor-arg name="tblStateNameGateWay">
        <ref bean="tblStateNameGateWay"/>
    </constructor-arg>
</bean>


<bean id="dataSources" class="fungaldatabasesFlex.AllAps.CFC.dataSources">
    <property name="dsn"><value>${dsn}</value></property>
</bean>
<bean id="tblSciNameGateWay" class="fungaldatabasesFlex.FungusName.CFC.tblSciNameGateway" />
<bean id="tblHostNameGateway" class="fungaldatabasesFlex.HostName.CFC.tblHostNameGateway" />
<bean id="tblStateNameGateway" class="fungaldatabasesFlex.StateName.CFC.tblStateNameGateway" />
<bean id="tblSpecimenGateWay" class="fungaldatabasesFlex.Specimen.CFC.tblSpecimenGateWay" >
    <property name="dataSources">
        <ref bean="dataSources"/>
       </property>
    </bean>


</beans>


Thanks,

David Farr

U.S. Dept. Agriculture, Agricultural Research Service
Systematic Botany and Mycology Laboratory
Voice: 301-504-5274
 

Reply via email to