<< XSS Filtering | Home | Undoable Silent Autoupdate >>

DWR version 3.0 Release Candidate 1

DWR version 3.0

The much awaited DWR version 3.0 has reached release candidate 1. What's new?

  • RPC Enhancements
    • Varargs support
    • Method overloading (DWR tries to copy Java's method matching rules)
    • Typed parameters (so you can say new Apple() in JavaScript and pass it to the addFruit() method and DWR will instantiate the correct type on the server)
    • Lightweight typed parameters (as above, but by adding $dwrClassName:"Apple", for when you are getting the objects from something else)
    • More natural synchronous XHR (so you can call var reply = Remote.getData() when doing 'Sjax')
  • Improved Marshalling
    • Binary file upload/download (byte[], java.awt.BufferedImage, InputStream etc and FileTransfer can be uploaded from an input type=file, offered for download, or sent to an img)
    • Functions (Store a reference to a JavaScript function on the server for later execution)
    • Objects by Reference (Store a reference to a JavaScript object, and then call methods on that)
    • Locale, Currency (DWR will marshal to and from java.util.Locale and java.util.Currency objects)
  • Reverse Ajax
    • JavaScript can now implement a Java interface (For simple integration with Java Events/Listeners)
    • More scalable Reverse Ajax APIs (See org.directwebremoting.Browser)
    • DOM Manipulation Library (Window and Document can now be manipulated from the server)
    • The server now runs in 3 modes: stateless (New - save memory with no page tracking), passiveReverseAjax (the default) and activeReverseAjax (comet enabled)
  • TIBCO GI Integration
    • Complete set of Reverse Ajax Proxy APIs (So you can manipulate your GI user interface from Java on the server)
  • Dojo Integration
    • Data Store (Keep a server side data store in sync with data in a client browser with both sides able to send updates. The data store also supports paging, sorting and filtering)
    • Packaging Integration (dojo.require all your DWR scripts)
  • Server Support
    • Asynchronous servlet support for Tomcat and Glassfish
    • Improved Spring and Guice support
  • Over the wire
    • JSONP support
    • JSON-RPC support
  • Tech Previews
    • JMS Integration (Publish to the browser directly from JMS)
    • Aptana Jaxer Integration (Zero configuration for trusted environments)
  • Infrastructure
    • SVN (We've moved from CVS to SVN)
    • Related Projects (Our repository contains a set of related projects including a number of demos)
    • CLA (We've been through a legal review and have signed CLAs for dwr.jar)
    • Dojo Foundation (We joined the Dojo Foundation and are now hosted by their servers)
    • Better Documentation (DWR version 1.x had great docs. Version 2.x let things slide a bit, but we've dropped Drupal, and have our own system now)

There are also a bunch of things like better logging, error reporting and so on, but the full list would get quite dull. 2 things dropped out that we'd previously talked about: Bayeux Support and Gears Offline integration. We'll get to those, particularly Gears, soon.

I'm sure there will be lots of questions about how to use these features. Please don't ask in the comments; join the mailing list and ask there. As we roll out the new documentation system in the next week or so, all the details will be in there, and I'll then come back and link up this blog post.

You can download it now.

Tags :


Re: DWR version 3.0 Release Candidate 1

I'm going to add some of the Spring enhancements that are missing from the above list:
* Wildcard support (conversion)
* Automatic URL configuration for Spring MVC (<dwr:url-mapping />)
* Annotation support via namespace handler (<dwr:annotation-config />)
* Annotation scan (<dwr:annotation-scan />)
* Annotated DTO's (with/without scan)
* Bean converters (using a new attribute in <dwr:convert />)
* Support for lazy-init beans
* Multiple DWR configurations supported (even in different contexts)

* Create remote proxies from existent beans (<dwr:proxy-ref />)
* Bug fixes & minor additions (ie. support for filter params)
* A test bench!
* Support for proxied beans with generic parameters (wait for RC2)

JDK 5 or JDK 1.4?

Does it need JDK 5 or compatible with JDK1.4?

JDK 5 or JDK 1.4?

Loool :-) I hope it is only compatible with >JDK5!!! Jakarta-commons is not what it was before due to the "we support all JDK" idea.

Re: DWR version 3.0 Release Candidate 1

A lot of features indeed. I can't wait for your final release. What would be the time frame for this?

Re: DWR version 3.0 Release Candidate 1

I'm really interested by new Spring features but I have difficultes to do a working configuration. Is it possible to have configuration example ?

Re: DWR version 3.0 Release Candidate 1

Is it available on Maven repo already? Thanks :-)

Re: DWR version 3.0 Release Candidate 1

My webapp is working with following environment.

dwr.jar(2.0.5)
tomcat-6.0.18
JDK-1.6.12
commons-logging-1.1.1.jar

but doesn't work with following environment.

dwr.jar(3.rc1)
tomcat-6.0.18
JDK-1.6.12
commons-logging-1.1.1.jar

Re: DWR version 3.0 Release Candidate 1

Its over two months since the RC1. Any time lines on the GA?

Re: DWR version 3.0 Release Candidate 1

does dwr version 2.0.1 support mozilla firefox 3.0?

Re: DWR version 3.0 Release Candidate 1

Hi, I am using DWR-2.0 in my application with Hibernate, Tomcat5.5, java 5.0. To Move on DWR 3.0 what changes i need to do in my application, can u give any idea or any link where all these thing will be documented

Re: DWR version 3.0 Release Candidate 1

When is the 3.0 GA release?

Re: DWR version 3.0 Release Candidate 1

Any news on the release of v3 guys ?

Re: DWR version 3.0 Release Candidate 1

Very useful files search engine. indexoffiles.com is a search engine designed to search files in various file sharing and uploading sites.

Re: DWR version 3.0 Release Candidate 1

Great effort to put this information together; your post worth reading for me. I am using DWR 2.0.1 which support Firefox 3.0, Tom Cat5.5. I am planning to update it but i have a lot of web hosting data loaded,so a lot of time required. Any ways; your blog is pretty good source of quality information.

Re: DWR version 3.0 Release Candidate 1

Very useful files search engine in various file sharing and uploading sites. I have difficulties to do a working configuration. Is it possible to have configuration example ? free advertising |job|iphone repair

Re: DWR version 3.0 Release Candidate 1

Considerably, the article is in reality the greatest on this noteworthy topic. I agree with your conclusions and will eagerly look forward to your next acai berry updates. Saying thanks will not just be sufficient, for weight loss pills the wonderful clarity in your writing. I will immediately grab your rss feed to stay privy of any updates. Pleasant work and much success in your business dealings!

Re: DWR version 3.0 Release Candidate 1

very pleasure to visit this site. nice post. thanks for sharing.last longer in bed

Re: DWR version 3.0 Release Candidate 1

DWR is a RPC library which helps us to call java functions from javascript at the same time calls javascript functions from java. It has a larger user base and main features are exception handling, batching & marshalling. This DWR version 3.0 has got advanced features and thanks for your tutorial. valentines hotel deals

Re: DWR version 3.0 Release Candidate 1

Thanks for great news! Custom web designers

Re: DWR version 3.0 Release Candidate 1

Re: DWR version 3.0 Release Candidate 1


Add a comment Send a TrackBack