|
|
Write Javascript in Java : DWR version 2.0 milestone 2 is released
|
05/08/2006, By Ajax Impact News
|
Recently DWR version 2.0 milestone 2 is released, Some of the new features are Ability to write the Javascript in Java, Annotation based configuration and a customization to allow Reverse Ajax to use Jetty Continuations.
Write your Javascript in Java
Javascript puts some people off Ajax; DWR 2.0 milestone 2 has a set of new experimental APIs that allow you to use Java and the familiarity of the language and IDE to write Javascript.
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 element) you can use DWR without any need for dwr.xml. New annotations include @Create, @Convert, @RemoteMethod, @RemoteProperty.
Read more on DWR Annotation
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.
What is DWR
DWR is a Java open source library which allows you to write Ajax web sites. It allows code in a browser to use Java functions running on a web server just as if it was in the browser.
DWR consists of two main parts
A Java Servlet running on the server that processes requests and sends responses back to the browser.
JavaScript running in the browser that sends requests and can dynamically update the webpage.
DWR works by dynamically generating Javascript based on Java classes. The code does some Ajax magic to make it feel like the execution is happening on the browser, but in reality the server is executing the code and DWR is marshalling the data back and forwards.
Download DWR 2.0 M2 Version
Read Complete Release Notes...
|
Rate this Ajax News
Rating: 0.0 out of votes cast
| |
|
|
| |
|
|
|
|
|
|
|
|