Skip to content

Using Atmosphere's Annotations

jfarcand edited this page Apr 10, 2013 · 4 revisions

Configuring your application

If you are using Atmosphere Runtime, you can configure your application using an atmosphere.xml or web.xml's init-param, or use Atmosphere's Annotation. The available annotations are:

Using annotation

First, add in your pom.xml if you are using Atmosphere 1.0.x. Not needed with 1.1

        <dependency>
            <groupId>eu.infomas</groupId>
            <artifactId>annotation-detector</artifactId>
            <version>3.0.1</version>
        </dependency>

Next, define the following in your web/application.xml

        <init-param>
            <param-name>org.atmosphere.cpr.packages</param-name>
            <param-value>you.class.package</param-value>
        </init-param>

The available annotations are:

Step by Step Tutorials

Concepts & Architecture

15 Minutes Tutorial

Advanced Topics

API

Known WebServer Issues

References

External Documentations

githalytics.com alpha

Clone this wiki locally