DWR 2.0 milestone 2 lets you write Javascript in Java
Milestone 1 delivered Reverse Ajax and other goodies. Milestone 2 adds Annotations, Reverse Ajax using Jetty Continuations and the ability to write your Javascript in Java and more.
Writing your Javascript in Java is particularly cool. Rather than explain it twice, you really need to read the release notes for more details.
Re: DWR 2.0 milestone 2 lets you write Javascript in Java
congratulations! I tried to switch to it few hours ago.
Sometimes it throws a exception but sometimes it doesn't, at the same circumstances.
the exception is like: Error calling pollWait()
java.lang.IllegalStateException: Attempt to remove unattached ScriptConduit: org.directwebremoting.remoted.DwrSystem$1@14649ed