BT

Facilitating the Spread of Knowledge and Innovation in Professional Software Development

Write for InfoQ

Topics

Choose your language

InfoQ Homepage News DWR 2.0 Release Candidate 1 now available

DWR 2.0 Release Candidate 1 now available

DWR 2.0 RC1 was released today by Joe Walker, featuring a JavaScript Proxy API, Reverse Ajax, and Security enhancements. DWR, billed as "Easy Ajax for Java", is a library that allows for quick development of Ajax applications by exposing methods on Java objects to the client.

DWR (Direct Web Remoting) 2.0 includes three major enhancements:

  • JavaScript Proxy API - DWR can dynamically generate JavaScript from a Java API. This is done at runtime rather than compile time.
  • Reverse Ajax - DWR supports 3 ways to asynchronously transfer messages from the server to the browser: Comet, Polling, and Piggyback. DWR will automatically select the best method for transport.
  • Security - DWR provides automatic protection against Cross-Site Request Forgery attacks for many configurations and defaults to a mode where Cross-Site Scripting attacks are reduced.

Numerous other enhancements are detailed in the full release notes. Additional details about the three types of Reverse Ajax are also available.

InfoQ found that DWR was the second most popular Ajax framework in the Java community, based on an Ajaxian survey.

Rate this Article

Adoption
Style

BT