Oracle Magazine Special offer for AjaxImpact.com Visitors!! Subscribe to Oracle Magazine for Free!
AJAX IMPACT



AJAX NEWS
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.

    DWR

    Download DWR 2.0 M2 Version

       Read Complete Release Notes...


     Rate this Ajax News
     Rating: 0.0 out of votes cast

    AJAX NEWS
    04/01/2007 wxJavaScript : porting wxWidgets to JavaScript.
    03/31/2007 DED|Chain - The web developers JavaScript Kit
    03/30/2007 Clipperz Crypto Library - a JavaScript library of crypto primitives
    03/28/2007 ETech - AJAX Unplugged Slides
    03/27/2007 Stripe Generator: ajax powered web 2.0 tool!
    03/26/2007 Finally Microsoft joins the OpenAjax Alliance


    INDUSTRY NEWS
    05/19/2006 Ajax grabs center stage at JavaOne, By Tony Baer
    05/15/2006 Oracle to boost AJAX, Java , By Paul Krill
    05/13/2006 Open AJAX Group Drafts Development Plans, By Stacy Cowley
    05/13/2006 AJAX Powers Interactive Marketing ASP, By AjaxWorld News Desk
    05/12/2006 AJAX Experts Tackle Security, Other Issues , By Darryl K. Taft
    05/11/2006 Adobe Releases Spry Framework for AJAX, By AjaxWorld News Desk
    More 
           

          © 2008 ajaximpact.com. All rights reserved.