I just wanted to write a quick update on my first post : Spring + DWR namespaces + AOP
Jose Noheda, one of the developers of DWR, advised me to log a bug in the DWR Jira. Well, I did, and about 2 days later, low and behold, its fixed, so to speak.
Have a look at the bug report, but in short, instead of having to proxy your service beans via the Spring ProxyBeanFactory, a namespace tag has been created which proxys your bean for you, allowing you to add the <dwr:remote …. /> tags separate from the original service bean definition
eg.
(applicationContext-services.xml)
<bean id=”mySimpleService” class=”com.sample.SimpleServiceImpl” />
(applicationContext-dwr.xml)
<dwr:proxy-ref bean=”mySimpleService” javascript=”…” >
<dwr:include method=”*” />
</dwr:proxy-ref>
Although this has been fixed for version 3.0 M2, version 3 isn’t that far away, its worth the wait. But if you can’t wait, use the other way for now (ProxyFactoryBean) and then switch.
Thanks Joe and Jose for all your work
