Sorry to re-open this thread but I now have another problem I need
some help with...
Just to refresh the memory my architecture now looks like this:
/root (main application - contains a ColdSpring bean factory
application.beanfactory)
/root/admin (ModelGlue application)
/root/admin/index.cfm now contains this line:
<cfset ModelGlue_PARENT_BEAN_FACTORY = application.beanfactory />
Now in my /root/admin/config/ColdSpring.xml (the "child one" in the
model glue app) I have this:
<alias alias="ormAdapter" name="ormAdapter.Transfer" />
<alias alias="ormService" name="ormService.Transfer" />
<bean id="transferConfiguration"
class="transfer.com.config.Configuration">
<constructor-arg name="datasourcePath"><value>/admin/config/
transfer/Datasource.xml</value></constructor-arg>
<constructor-arg
name="configPath"><value>/admin/config/transfer/
Transfer.xml</value></constructor-arg>
<constructor-arg
name="definitionPath"><value>/admin/model/data/
transfer</value></constructor-arg>
</bean>
<bean id="Transfer" factory-bean="ormService" factory-
method="getTransfer" />
<bean id="transaction" factory-bean="ormService" factory-
method="getTransaction" />
However, I now have the case where I want to use transfer outside of
the ModelGlue app. I tried putting the code above into the parent
BeanFactory (ie. /root/coldpring.xml) but it's giving the error:
There is no bean registered with the factory with the id ormService
Presumably ormService is something that MG sets up, so it is not
available in the parent.
Is my best option to create a separate transfer bean in the parent
app, and leave the ModelGlue app's ColdSpring.xml as is, or is there
some other way? Is the ormService even necessary if I don't intend to
use Scaffolds?
--~--~---------~--~----~------------~-------~--~----~
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
For more about Model-Glue, check http://www.model-glue.com .
-~----------~----~----~----~------~----~------~--~---