Followers

Monday, January 10, 2011

The Curious Case Of GWT And AppEngine

On 16th July 2007, I met with an interesting Guy. Our friendship is now 42 months old. Though, his name as a word drips with arrogance when used as a verb, he is a cheerful chap and is very comfortable around all kinds of Plug-ins. Plug-ins, yes this is what he calls compatible friendship between him and an another person. Meet my friend Eclipse. His full name is "Eclipse 3.5 Galileo". And yes his middle name is a float. No wonder he is as awesome as he seems to be.

Yesterday I spent the whole day with him, chatting, poking and making merry. Remembering good ol' days of our friendship. Enough. Reality now.

Yesterday I was interfering into Google matters. Pursuing it seriously. Very serious. Mission objective was to make my friend Eclipse gain some weight. I wanted to feed him some high protein food. On the Google website the name of the thing was given as "Google Web Toolkit 2.1.1 SDK + Plugin" and "Google App Engine 1.4.0 SDK". What a weird name for a food for my friend.

I was told "Google Web Toolkit 2.1.1 SDK + Plugin" will help him to help me instead to know and learn something to do with Ajax. And the other one "Google App Engine 1.4.0 SDK" will help me to know and learn Cloud Computing Application Development. What? I said, Clouds, now is this something to learn. Ajax and Cloud?? Where am I, a Flying club or Disney Land. O.K. Let us see.

I fed him through his mouth which, the manual said, is called "Install New Software..." and is present in the Help Tab. I fed him the link. He seemed to gobble it down first , but then lost his appetite. I wondered what happened to my dear friend.


I contacted my Internet Doctor, a doctor for all remedies, Doctor Google. He prescribed a help forum for Guys named Eclipse. They told me to brush his mouth and clear it of all the "Available Software Sites" from "Windows>>Preference>>Install/Update>>Available Software Sites" and then feed him the link. I did just that and found that my friend "Eclipse 3.5 Galileo" went all normal gobbling up all the bandwidth and ate all of the 100MB SDK and plugin.

He is all fat and chubby now, helping me in learning Java Ajax Framework called Google Web Toolkit and Cloud computing App Engine. So nice of him. Thanks for being my friend "Eclipse 3.5 Galileo".

Sunday, January 9, 2011

Ajax

Hello there, Java Enthusiasts,

I wanted to share some notes on Ajax and related stuff. Hope it helps to summarize briefly. This blog article will be updated with more information from time to time.

Ajax shorthand for Asynchronous JavaScript and XML is a combination of the technologies:
  1. HTML or XHTML and CSS for presentation
  2. the Document Object Model (DOM) for dynamic display of and interaction with data
  3. XML for the interchange of data, and XSLT for its manipulation
  4. the XMLHttpRequest object for asynchronous communication
  5. JavaScript to bring these technologies together

With Ajax, web applications can retrieve data from the server asynchronously in the background without interfering with the display and behaviour of the existing page. Data is usually retrieved using the XMLHttpRequest object.

The term Ajax was coined on February 18, 2005 by Jesse James Garrett in an article entitled Ajax: A New Approach to Web Applications.

On April 5, 2006 the World Wide Web Consortium (W3C) released the first draft specification for the XMLHttpRequest object in an attempt to create an official web standard.

The utility of background HTTP requests to the server and asynchronous web technologies remained fairly obscure until it started appearing in full scale online applications such as Outlook Web Access (2000) and Oddpost (2002), and later, Google made a wide deployment of Ajax with Gmail (2004) and Google Maps (2005).

With traditional Ajax Client polling is used. Reverse Ajax describes the implementation of either Client polling or Server pushing models, or a combination of both. The design pattern is also known as Ajax Push, Full Duplex Ajax and Streaming Ajax.

An Ajax framework is a web application framework that helps to develop web applications that use Ajax. The goal of the framework is to provide the Ajax engine and associated server and client-side functions. Types of frameworks, according to the features they offer and the skills required of the user, include,
  1. Direct Ajax frameworks (require HTML, CSS and Ajax expertise), 
  2. Indirect Ajax frameworks (based on compiler technology, a high-level language is used), 
  3. Ajax component frameworks (offer pre-built components) and 
  4. Server-driven Ajax frameworks (offer a server-side component-based development model with some degree of Ajax support).
List of Ajax frameworks
JavaScript frameworks are browser-side frameworks very commonly used in Ajax development such as jQuery, SWFObject, jQuery UI, Prototype, Yahoo! UI Library, script.aculo.us etc.

Java frameworks use Java for server-side Ajax operations such as Apache Wicket, AribaWeb, Google Web Toolkit, Richfaces etc.

Others are Pyjamas for Python, Wt - a C++ Web Toolkit, ASP.NET AJAX from .NET, Sajax and Xajax for PHP and RJS for Ruby on Rails.