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] <mailto:[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

Reply via email to