Thursday, July 27th, 2006

Ajax and the Spring Framework with TIBCO General Interface

Category: Articles, Examples, Programming, TIBCO

<p>Brian Walsh has written an exceedingly well documented tutorial on combining Spring MVC, XStream and TIBCO GI. The focus is on using GI at the view layer while making only incremental changes to an existing Spring MVC application (the application from the Spring MVC step-by-step tutorial in this case, which you’ll have to step through before you go on to the GI tutorial):

Application owners and developers alike predictably want to increase productivity and reduce time to market. This type of rapid implementation gives us several imperatives:

  • No wholesale replacement of our Spring investment.
  • Incremental change of existing server code as opposed to wholesale change to, for example, SOAP Web services
  • Continued support for non-Ajax clients
  • Re-use of existing code wherever we can. Develop the GI application along side the JSP layer.

Since GI generates the view at the client, Spring need no longer generate HTML at the server. Instead, we’ll modify our Spring configurations such that Spring can also return raw data in form of XML that can be consumed as a service by the Ajax processes in GI.

The tutorial is generously illustrated with sequence diagrams, annotated configuration files and screen shots. It shows how to replace the HTML rendering logic of the existing application with an XStream-based logic that transforms the model into XML. (If you haven’t looked at XStream yet, you really should. It’s a clever library that allows you to serialize and deserialize objects to and from XML with a few lines of code.) All of the rendering is handled by GI in the client now, including degrading gracefully for non-AJAX clients.

The tutorial also serves as a lesson in how the development of web applications will change when WYSIWYG, component GUI interface tools become involved. The story board before-and-after shots of the UI in particular suggest some of the artifacts that might be produced in legacy web to AJAX migrations.


Related Content:

  • Ajax and the Spring Framework with TIBCO General Interface
    Ajax (Asynchronous JavaScript and XML) means many things to many people. However, one thing is certain: To users it implies a higher level of...
  • Using DWR with TIBCO General Interface
    This simple request/response cycle example demonstrates some of the basic utilities Direct Web Remoting (DWR) provides for making interactions between...
  • Tibco offering open-source Ajax interface tool
    Tibco's General Interface 3.2 lets developers create and deploy an Ajax-based UI for Web applications. It includes a component library and offers a...
  • Tibco boosts Ajax
    Tibco Software Inc. is giving a boost to Ajax in the enterprise with the new release Version 3.5 of its open-source Ajax toolkit, General Interface...
  • Tibco sets its Ajax free
    Tibco's latest version of its General Interface Ajax and rich Internet application studio software will be available for a free license for public...

Posted by Dietrich Kappe at 2:49 pm
1 Comment

4.1 rating from 34 votes

1 Comment »

Comments feed TrackBack URI


Comment by tzlqol0m00 — August 17, 2006

Leave a comment

You must be logged in to post a comment.