1) downloaded Reactor from SVN
2) installed in my local webroot under /reactor
3) created /reactor mapping to /reactor directory
Now I have a reactor file in /Scratch (under webroot):
<reactor>
<config>
<dsn value="myDSN" />
<type value="mysql" />
<mapping value="/Scratch" />
<mode value="always" />
</config>
<objects/>
</reactor>
And the following code in test.cfm (under webroot/Scratch):
<cfset reactor = createObject("COMPONENT", "reactor.reactorFactory ").init(expandPath("reactor.xml")) />
<cfset userRecord = reactor.createRecord("user") />
It all seems to work fine, but I'm still receiving the same XML parsing error...
Any ideas?
On 2/4/06, Sam Clement <
[EMAIL PROTECTED]> wrote:
Well I neglected to mention that I've modified the core reactor files to work under a different custom mapping (unfortunately due to anticipated shared hosting constraints). So I think it must be something to do with this but I can't figure out what...
I think I'll go back to the using the unaltered reactor core files and troubleshoot from there.
Peter, I got some feedback from Kurt on this list regarding factory-bean and factory-method support in Coldspring which sounds really cool. When that's implemented I think a Coldspring / Reactor mix will work even better. Can't wait!On 2/3/06, Peter J. Farrell <[EMAIL PROTECTED]> wrote:Sean Corfield said the following on 2/3/2006 2:05 PM:Sean is right...you then can also use CS's factory method support (when Kurt gets done with it) to inject your DAO and gateway dependencies into your services. Sounds great to meOn 2/3/06, Sam Clement <[EMAIL PROTECTED]> wrote:
Though it might seem a bit overkill I'm using coldspring to configure and
instatiate Reactor:
Doesn't seem like overkill to me. Model-Glue, ColdSpring and Reactor
seem like a natural partnership...
--
Peter J. Farrell :: Maestro Publishing
Member Team Mach-II :: Member Team Fusionhttp://blog.maestropublishing.com Create boilerplate beans and transfer objects for ColdFusion! Fire up a cup of Rooibos! http://rooibos.maestropublishing.com/

