Created
November 21, 2012 15:52
-
-
Save jfarcand/4125590 to your computer and use it in GitHub Desktop.
Adding WebSocket Support to Jersey
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/modules/concepts-service-distribution/src/main/webapp/WEB-INF/web.xml b/modules/concepts-service-distribution/src/main/webapp/WEB-INF/web.xml | |
index 4a18daf..a62eb97 100644 | |
--- a/modules/concepts-service-distribution/src/main/webapp/WEB-INF/web.xml | |
+++ b/modules/concepts-service-distribution/src/main/webapp/WEB-INF/web.xml | |
@@ -21,7 +21,7 @@ | |
<servlet> | |
<servlet-name>jersey</servlet-name> | |
- <servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class> | |
+ <servlet-class>org.atmosphere.cpr.AtmosphereServlet</servlet-class> | |
<init-param> | |
<param-name>com.sun.jersey.config.property.packages</param-name> | |
<param-value>com.wordnik.resource, com.wordnik.swagger.jaxrs, com.wordnik.resource.util</param-value> | |
diff --git a/modules/concepts-service/pom.xml b/modules/concepts-service/pom.xml | |
index 972140d..d2acab7 100644 | |
--- a/modules/concepts-service/pom.xml | |
+++ b/modules/concepts-service/pom.xml | |
@@ -268,6 +268,12 @@ | |
<version>${swagger-version}</version> | |
<scope>compile</scope> | |
</dependency> | |
+ <dependency> | |
+ <groupId>org.atmosphere</groupId> | |
+ <artifactId>atmosphere-runtime</artifactId> | |
+ <version>1.0.4</version> | |
+ <scope>compile</scope> | |
+ </dependency> | |
</dependencies> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment