You are passing the location of your reactor.xml into your reactor instance
but what you really want is to pass a reference to the reactorConfiguration
bean. Also the way you have it setup you are creating two instances of
reactor factory, one is created by ModelGlue and the other you are creating
manually. You could simply alias ormservice.reactor.
Here's an example config
<alias alias="ormAdapter" name="ormAdapter.Reactor" />
<alias alias="ormService" name="ormService.Reactor" />
<alias alias="reactor" name="ormService.Reactor" />

<bean id="reactorConfiguration" class="reactor.config.config">
  <constructor-arg
name="pathToConfigXml"><value>/config/Reactor.xml</value></constructor-arg>
  <property name="project"><value>myproject</value></property>
  <property name="dsn"><value>mydsn</value></property>
  <property name="type"><value>mysql</value></property>
  <property name="mapping"><value>/model/data</value></property>
  <property name="mode"><value>production</value></property>
</bean>

Chris

2009/6/7 Paul <[email protected]>

>
> Trying to use reactor in MG but keep getting this error (below) buy
> my /reactor/data/ directory does not contain 'convention' cfc only
> abstractconvention.cfc. I am using mg3, bleeding edge coldspring, and
> latest reactor
>
>
> Message         Bean creation exception during init() of
> reactor.reactorFactory
> Detail  Could not find the ColdFusion Component or Interface
> reactor.data..Convention.:Ensure that the name is correct and that the
> component or interface exists.
> Extended Info
> Tag Context     J:\ColdFusion8\wwwroot\coldspring\beans
> \DefaultXmlBeanFactory.cfc (817)
> J:\ColdFusion8\wwwroot\coldspring\beans\DefaultXmlBeanFactory.cfc
> (568)
> J:\ColdFusion8\wwwroot\ModelGlue\gesture\externaladapters\ioc
> \ColdSpringAdapter.cfc (22)
>
>
>
> My coldspring xml has this
>
>        <alias alias="ormAdapter" name="ormAdapter.Reactor" />
>        <alias alias="ormService" name="ormService.Reactor" />
>        <bean id="reactorConfiguration" class="reactor.config.config">
>                <constructor-arg
> name="pathToConfigXml"><value>/mgCart/Reactor.xml</
> value></constructor-arg>
>                <property name="project"><value>mgCart</value></property>
>                <property name="dsn"><value>mgCart</value></property>
>                <property name="type"><value>mssql</value></property>
>                <property
> name="mapping"><value>/mgCart/reactorData/</value></
> property>
>                <property name="mode"><value>development</value></property>
>        </bean>
>
> <bean id="reactor" class="reactor.reactorFactory">
>                <constructor-arg
> name="CONFIGURATION"><value>/mgCart/Reactor.xml</
> value></constructor-arg>
> </bean>
>
>
> and in my controller
>
> <cfset var Cfgd = getModelGlue().getBean("reactorConfiguration") />
>           <cfset var Cfg4 = getModelGlue().getBean("reactor").init
> ("reactorConfiguration") />
> >
>

--~--~---------~--~----~------------~-------~--~----~
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 .
-~----------~----~----~----~------~----~------~--~---

Reply via email to