I know...I know...in the world of social networking like twitter, blogs just aren't cool anymore, right? Well every once and a while I want to share something that exceeds 144 characters, so I created SolamenteNiel, my blog. While I'm at it, I'm also going old school with a cheesy picture of myself on my blog. In this picture I'm pertending to be an IndyCar driver.
In the post #3 I described the steps for DWR-enabling the Spring services that I created in post #2. This post will cover the implementation of the front-end. Now the whole point of DWR is to enable server-side logic to be accessible via javascript, and that makes DWR very well suited for AJAX applications.
Read Full PostIn the last post (part 2) I covered the creation of the service layer for my AJAX/DWR/Spring application called Bookmark Management. In this post I will cover adding DWR support the service layer, so that in my next post I can build the AJAX front-end.
Read Full PostIn the first post of this series I discussed the integration of AJAX-based applications with backend (server-side) logic in JAVA. There are a variety of technologies to handle the complexity of AJAX/JAVA integration, and in my opinion Direct Web Remoting (DWR) is one of the best (if not the best) solutions.
In this post let me jump straight into a sample project that demonstrates the use of DWR with backend services developed with Spring.
Recently I've been dabbling in a few different RIA frameworks and AJAX libraries, and it's mind boggling the number of choices there are. Regardless of the tools, frameworks or libraries that you choose to use, there is a fundamental requirement to integrate with server-side logic. In the Java space there are various ways to implement the server logic, and implementing services using Spring is a very popular choice. However RIA and AJAX applications aren't inherently compatible with Spring services. This problem isn't unique to Java and Spring....all server-side technologies suffer from the same problem. In all cases there is some additional infrastructure required to help RIA and AJAX consume server-side logic, and in the Java space there are a variety of options. Direct Web Remoting (DWR) is one choice, and after working with it for a few days I think it's probably one of the best choices.
DWR makes it very easy to expose your server-side Java and Spring logic to javascript based applications. That makes DWR complimentary with just about any AJAX framework out there. In another excellent example of code generation, DWR will generate infrastructure to facilitate the communication between AJAX-based applications and server-side logic using javascript and JSON, the linga franca of AJAX. Over the next series of blog posts I will cover building Spring services, adding DWR to AJAX enable the services, and building an AJAX front-end to consume the services. As you've come to expect from me, at the end I will have an Skyway Builder project that you download and use for yourself in Eclipse.