Clifford,I'm going to answer your original question, because I believe it would be instructional. While I don't personally split persistence in two objects, there is nothing specifically wrong with it if that's what you want to do.
Step1: Update WFDAO.cfc to have get/setWFGW functions. Step 2: Update ColdSpring.xml <beanid="WFBean" class="it.workflow.model.WFBean" singleton="true" /> <beanid="WFService" class="it.workflow.model.WorkFlowService"> <propertyname="WFDAO"><refbean="WFDAO" /></property> <property name="WFGW"><ref bean="WFGW" /></property> </bean> <beanid="WFDAO" class="it.workflow.model.WFDAO"> <propertyname="AppConfig"><refbean="AppConfig" /></property><property name="WFGW"><ref bean="WFGW" /></property> <!-- Pass in the object -->
</bean> <beanid="WFGW" class="it.workflow.model.WFGW"> <propertyname="AppConfig"><refbean="AppConfig" /></property> </bean>Step 3: Call the gateway functions inside your DAO, getWFGF().someGatewayFunction()
DW
Clifford Moon <mailto:[email protected]> Tuesday, February 26, 2013 11:02 AM Greetings,I have several functions inside the WFGW.cfc file that I'm interested in calling from WFDAO.cfc (both located in the MODEL directory).All are defined inside coldspring.xml, but I cant seem to be able to recognize those functions from WFDAO.cfc.Here is my bean definition inside cold spring.xml: <beanid="WFBean" class="it.workflow.model.WFBean" singleton="true" /> <beanid="WFService" class="it.workflow.model.WorkFlowService"> <propertyname="WFDAO"><refbean="WFDAO" /></property> <property name="WFGW"><ref bean="WFGW" /></property> </bean> <beanid="WFDAO" class="it.workflow.model.WFDAO"> <propertyname="AppConfig"><refbean="AppConfig" /></property> </bean> <beanid="WFGW" class="it.workflow.model.WFGW"> <propertyname="AppConfig"><refbean="AppConfig" /></property> </bean> What would I need to do to make those functions available? Thanks for any help Clifford Moon -- -- 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 ---You received this message because you are subscribed to the Google Groups "model-glue" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].For more options, visit https://groups.google.com/groups/opt_out.
-- -- 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--- You received this message because you are subscribed to the Google Groups "model-glue" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
<<inline: compose-unknown-contact.jpg>>
