The table below describes every Atmosphere's sample by defining the server and client API used to build it. You can download the sample by clicking on its name.
Recommended samples for getting started are the chat, which demonstrate usage of all transports using an AtmosphereHandler, or the jquery-pubsub, which demonstrate how to switch from one transport to another using a Jersey Resources. If you are interested to write WebSocket only application, take a look at the atmosphere-websockethandler-pubsub sample. The pubsub sample contains a lot of small demonstration on how the Jersey extension can be used. If you are interested to write HTML5 Server Side Events application, take a look at the atmosphere-sse-xxx samples.
If you plan to use Spring or GWT, take a look at their specific samples.
All sample supports WebSocket and Long Polling by default. Streaming and JSONP are supported by the majority of pubsub samples. If you are interested to write HTML5 Server Side Events application, take a look at the atmosphere-sse-xxx samples.
|Sample Name||Description||Server Components||Client Components|
|all-api-pubsub||This sample implements a pubsub example that demonstrates all Atmosphere's API and extension. The use of AtmosphereResource, Meteor, Annotation like @Suspend and @Broadcast are demonstrated||AtmosphereHandler Jersey Resource Meteor WebSocketProtocol||Single Callback supporting WebSocket, Long-Polling, JSONP, Http-Streaming||async-annotation-pubsub||This sample demonstrates the use of the @Asynchronous annotation combined with the Callable<?> API, showing how an application can be fully asynchronous in its execution. The sample implements the pubsub concepts.||Jersey Resource||Single Callback supporting WebSocket, Long-Polling, JSONP, Http-Streaming|
|atmosphere-ee6||This sample demonstrates the use of @Suspend with Java EE's 6 annotation like @Resource and EJB Timer||Jersey Resource||Http-Streaming|
|channel||This sample demonstrate the use of @Subscribe and @Publish annotation using a pub sub application. If you are migrating from CometD, this sample is for you.||Jersey Resource|
|gwt-demo||This samples demonstrates the use of the Atmosphere GWT extension.||GWT||GWT|
|jquery-multirequest||This sample demonstrates how multi requests can be made using the jQuery.atmosphere.js. The sample implements the pub sub application.||Jersey Resource/td>||Per Request and Global callback|
|jquery-pubsub||This sample demonstrates a lot of server side functionality like broadcast/suspend/resume using a Jersey Resource.||Jersey Resource|
|spring-websocket||This sample demonstrates the use of Spring with Atmosphere WebSocketHandler, Meteor and AtmosphereHandler||Meteor Service WebSocketProtocol||Spring View|
|wicket-clock||This sample demonstrates how Atmosphere can be used with the Wicket Framework||Meteor||Wicket|