The Dropwizard example integrated with Atmosphere rest-chat example.
Dropwizard is a high performance JVM REST framework built upon proven production JVM technologies.
Atmosphere provides server side push technology using websockets when it can and gracefully degrades to long polling for browsers that suck.
To test the example application run the following commands.
-
To package the example run.
mvn package
-
To run the server run.
java -jar target/dropwizard-example-0.6.2.jar server example.yml
To test chat, which purposely resides in its own directory to excercise CORS
-
Browse the file
app/chat.html
-
To test the bad word filter, enter any message with ".NET" and it will be replaced with "***" :)