Exposing Spring Beans as AJAX methods using DWR

<bean id="echoBean" class="com.samples.Echo">
   <dwr:remote javascript="Ajax">
      <dwr:include method="echo"/>
   </dwr:remote>
</bean>