« Return to Thread: DWR 2 and Spring 2

Re: DWR 2 and Spring 2

by Danny Garcia Hernandez :: Rate this Message:

Reply to Author | View in Thread



My servlet config file look like this.

    <bean id="dwrHandlerMapping"    
class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
        <property name="alwaysUseFullPath" value="true" />  
        <property name="urlMap">
            <map>
              <entry key="/dwr/**/*"><ref local="dwrController"/>
              </entry>                          
            </map>
        </property>
    </bean>      

   <bean id="dwrController"
class="org.directwebremoting.spring.DwrController">
      <property name="configurators">
         <list>
            <ref bean="dwrConfiguration"/>
         </list>
      </property>
      <property name="debug" value="true"/>
   </bean>  
   
   <bean id="dwrConfiguration"
class="org.directwebremoting.spring.SpringConfigurator">
      <property name="creators">
         <map>
            <entry key="consultaDocSrv">
               <bean class="org.directwebremoting.spring.CreatorConfig">
                  <property name="creator">
                     <bean class="org.directwebremoting.spring.BeanCreator">
                        <property name="bean" ref="consultaDocSrv"/>
                     </bean>
                  </property>
               </bean>
            </entry>          
         </map>
      </property>
      <property name="converters">
        <map>
          <entry key="es.g2k.g2kstore.domain.DocumentoVenta">
            <value>bean</value>
          </entry>
        </map>
      </property>
   </bean>

             

Alex Shneyderman wrote:

> did you see this:
>
> http://bram.jteam.nl/index.php/2006/06/
>
> there is a sample application that has variety of config options one
> of them is
> spring2 and DWR2.
>
>
>
> On 12/16/06, Lexius <lexius.info@...> wrote:
>
>>
>> Does anyone have any working example
>> configs?
>>
>> ...
>> xmlns:dwr="http://www.directwebremoting.org/schema/spring-dwr"
>> http://www.directwebremoting.org/schema/spring-dwr
>> http://www.directwebremoting.org/schema/spring-dwr-2.0.xsd
>> ...
>>
>>
>> <dwr:controller id="dwrController" debug="true" />
>>     <dwr:configuration>
>> .....
>>
>>
>> ?
>> --
>> View this message in context:
>> http://www.nabble.com/DWR-2-and-Spring-2-tf2832281.html#a7907311
>> Sent from the DWR - Users mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@...
>> For additional commands, e-mail: users-help@...
>>
>>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...

 « Return to Thread: DWR 2 and Spring 2