Thanks Peter! It's actually all been combined into a sample app that demonstrates using ColdSpring and Reactor with Fusebox 5.1, Mach-II, and MG:U as the controller layers, all using the same model and views.
http://www.briankotek.com/blog/index.cfm/2007/2/4/Frameworks-Presentation-and-Code-Available On 8/11/07, Peter J. Farrell <[EMAIL PROTECTED]> wrote: > > Bryan S said the following on 8/10/2007 7:01 PM: > > I know but it isn't working. Thus this thread. > > On 8/10/07, Brian Kotek <[EMAIL PROTECTED]> wrote: > > > > You shouldn't be instantiating the factory yourself. The plugin does > > this automatically > > > > It's not the Mach-II plugin. It's the way CS has been configured. This > is what was posted in your config (edited for length): > > <!-- Security Service --> > <bean id="SecurityService" class=" > actionpacks.security.model.SecurityService"> > <!-- --> > <property name="SecurityConfig"> > <ref bean="SecurityConfig"/> > </property> > <property name="groupUserGateway "> > <ref bean="groupUserGateway "/> > </property> > .... MORE PROPS .... > </bean> > > Reactor needs to managed and setup as a factory in ColdSpring. Otherwise, > it's impossible for it to wire in the ActiveDirectoryDao correctly. I'm > basing this on what you posted in your init() method. You need to do > something like this: > > <bean id="reactorFactory" class="reactor.reactorFactory"> > <constructor-arg name="configuration"> > <value>/PATH/TO/config/reactor.xml</value> > </constructor-arg> > </bean> > > <bean id="groupUserGateway " factory-bean="reactorFactory" > factory-method="createGateway"> > <constructor-arg name="objectAlias"> > <value>GROUP_USER</value> > </constructor-arg> > </bean> > > As for the DAO not working -- aren't Reactor beans self saving via the > active pattern? Really it's not the plugin that is broken here (as I've > used it on many projects). There is something wrong with how you're > expecting CS to work in this case and since I don't have all the code in > front of me -- I'm out of suggestions. If I sound a bit terse, please > accept my apologies -- but in all reality -- the plugin is NOT broken! > > Lastly, you might consider looking at Brian Kotek's sample > Mach-II/Coldspring/Reactor app for more info: > > http://www.briankotek.com/blog/index.cfm/2006/4/19/MachII--ColdSpring--Reactor-Bookstore-Port > > .pjf >
