-
-
Notifications
You must be signed in to change notification settings - Fork 750
Structure of an Atmosphere Application
jdmartinho edited this page Sep 30, 2014
·
1 revision
This apply only to Atmosphere 1.0.x. For 1.1, see this
An Atmosphere's application structure must always contains the following files in order to maintains portability amongst WebServers
./META-INF
./META-INF/context.xml (1)
./WEB-INF
./WEB-INF/context.xml (2)
./WEB-INF/lib
./WEB-INF/lib/atmosphere-compat-jbossweb-1.0.0.jar (3)
./WEB-INF/lib/atmosphere-compat-tomcat-1.0.0.jar (4)
./WEB-INF/lib/atmosphere-compat-tomcat7-1.0.0.jar (5)
./WEB-INF/lib/atmosphere-runtime-1.0.0.jar (6)
./WEB-INF/lib/slf4j-api-1.6.1.jar (7)
- (1) Required to execute on Tomcat when (4) or (5) is included
- (2) Required to execute on JBoss
- (3) Required to execute on all WebServer, optional in JBoss
- (4) Required to execute on all WebServer, optional in Tomcat 6
- (5) Required to execute on all WebServer, optional in Tomcat 7
- (6) Atmosphere's core classes, always required.
- (7) Logging library, always required.
You can remove some of the files if you don't need portability.
For example, you can deploy Atmosphere with only the following jars if you target a single server:
Tomcat 6 only:
./META-INF
./WEB-INF/lib/atmosphere-compat-jbossweb-1.0.0.jar
./WEB-INF/lib/atmosphere-compat-tomcat7-1.0.0.jar
./WEB-INF/lib/atmosphere-runtime-1.0.0.jar
./WEB-INF/lib/slf4j-api-1.6.1.jar
Tomcat 7 only:
./META-INF
./WEB-INF/lib/atmosphere-compat-jbossweb-1.0.0.jar
./WEB-INF/lib/atmosphere-compat-tomcat-1.0.0.jar
./WEB-INF/lib/atmosphere-runtime-1.0.0.jar
./WEB-INF/lib/slf4j-api-1.6.1.jar
JBoss only:
./WEB-INF
./WEB-INF/lib/atmosphere-compat-tomcat-1.0.0.jar
./WEB-INF/lib/atmosphere-compat-tomcat7-1.0.0.jar
./WEB-INF/lib/atmosphere-runtime-1.0.0.jar
./WEB-INF/lib/slf4j-api-1.6.1.jar
The idea is that you don't need the jar file of the container you are deploying to. Finally, if you are only deploying on WebServers that supports Servlet 3.0 by default, you can completely remove the context.xml file.
- Understanding Atmosphere
- Understanding @ManagedService
- Using javax.inject.Inject and javax.inject.PostConstruct annotation
- Understanding Atmosphere's Annotation
- Understanding AtmosphereResource
- Understanding AtmosphereHandler
- Understanding WebSocketHandler
- Understanding Broadcaster
- Understanding BroadcasterCache
- Understanding Meteor
- Understanding BroadcastFilter
- Understanding Atmosphere's Events Listeners
- Understanding AtmosphereInterceptor
- Configuring Atmosphere for Performance
- Understanding JavaScript functions
- Understanding AtmosphereResourceSession
- Improving Performance by using the PoolableBroadcasterFactory
- Using Atmosphere Jersey API
- Using Meteor API
- Using AtmosphereHandler API
- Using Socket.IO
- Using GWT
- Writing HTML5 Server-Sent Events
- Using STOMP protocol
- Streaming WebSocket messages
- Configuring Atmosphere's Classes Creation and Injection
- Using AtmosphereInterceptor to customize Atmosphere Framework
- Writing WebSocket sub protocol
- Configuring Atmosphere for the Cloud
- Injecting Atmosphere's Components in Jersey
- Sharing connection between Browser's windows and tabs
- Understanding AtmosphereResourceSession
- Manage installed services
- Server Side: javadoc API
- Server Side: atmosphere.xml and web.xml configuration
- Client Side: atmosphere.js API