Thursday, May 4th, 2006
Milestone 2 contains some great new features like Annotation based configuration and a customization to allow Reverse Ajax to use Jetty Continuations.
Annotations: If you are using Java 5 then you can make use of the new DWR annotations thanks to Maik Schreiber. Combined with support for generic type reflection in milestone 1 (to get rid of the need for a <signature> element) you can use DWR without any need for dwr.xml. For more detail see the annotations documentation.
Jetty Continuations: The ongoing work with Reverse Ajax is to ensure that no webservers get hurt as a result of the extra load. The first piece of the puzzle is from Greg Wilkins of Jetty fame. If Reverse Ajax is turned on in a Jetty servlet engine then DWR will automatically use Jetty’s Ajax Continuations to save on server threads.
There are several reasons why you might want to do this:
- DWR can use it’s Reverse Ajax feature to make your calls affect several browsers at the same time. This make writing Chat type apps quite easy.
Please note that this API is very experimental so we’re not totally sure that we should implement it as we have done, or even if it is a good idea at all. I’m interested in your feedback.
Posted by Dion Almaer at 11:12 am