Developing AjaxPush WebApp for Glassfish and AjaxPush Portlet for WebSpace Server 10.0
By pgoutin on Oct 18, 2009
The essence of Ajax Push is the ability to trigger updates to the client from events or changes that occur on the server. This makes Ajax Push highly suitable for collaborative applications where one user does something that changes the current state of the application and other users are interested in seeing that change. There are many different ways to take advantage of Ajax Push to add collaborative features to your rich web application or portlet.
We are going to use the AjaxPush server (aka Comet) embedded into any GlassFish instance. By default the Comet server is off. So a very simple configuration step is required to take advantage of AjaxPush features.
These samples have been developed with NetBeans 651, ICEFace181 and PortalPack302.
As far as the deployment target are concerned, we tested successfully on GlassFish v2 (instance from GlassFishESB June 2009), GlassFish v3 and LifeRay 522 and WebSpace Server 10.0-update6.
This tutorial describes
- firstly, how to develop AjaxPush Webapp for GlassFish v2 or glassfish v3
- secondly, how to build an AjaxPush Portlet for WebSpace Server 10.0
Hope, these samples are clear enough to demystify AjaxPush feature. More sophiscated samples ...AjaxPush chat and AjaxPush AuctionMgr.
To learn more, a complete tutorial is available.