## Maven Snapshots
Maven snapshots of this branch are available through the Spring snapshot repository:
spring-snapshots
http://repo.springsource.org/snapshot
true
false
Use version `4.0.0.WEBSOCKET-SNAPSHOT`, for example:
org.springframework
spring-context
4.0.0.WEBSOCKET-SNAPSHOT
org.springframework
spring-web
4.0.0.WEBSOCKET-SNAPSHOT
org.springframework
spring-websocket
4.0.0.WEBSOCKET-SNAPSHOT
### Tomcat
Tomcat provides early JSR-356 support. You'll need to build the latest source, which is relatively easy to do.
Check out Tomcat trunk:
mkdir tomcat
cd tomcat
svn co http://svn.apache.org/repos/asf/tomcat/trunk/
cd trunk
Create `build.properties` in the trunk directory with similar content:
# ----- Default Base Path for Dependent Packages -----
# Replace this path with the path where dependencies binaries should be downloaded
base.path=~/dev/sources/apache/tomcat/download
Run the ant build:
ant clean
ant
A usable Tomcat installation can be found in `output/build`
### Jetty 9
Download and use the latest Jetty (currently 9.0.2.v20130417). It does not support JSR-356 yet but that's not an issue, since we're using the Jetty 9 native WebSocket API.
If using Java-based Servlet configuration instead of web.xml, add the following options to Jetty's start.ini:
OPTIONS=plus
etc/jetty-plus.xml
OPTIONS=annotations
etc/jetty-annotations.xml
### Glassfish
Glassfish also provides JSR-356 support based on Tyrus (the reference implementation).
Download a [Glassfish 4 build](http://dlc.sun.com.edgesuite.net/glassfish/4.0/) (e.g. glassfish-4.0-b84.zip from the promoted builds)
Unzip the downloaded file.
Start the server:
cd /glassfish4
bin/asadmin start-domain
Deploy a WAR file. Here is [a sample script](https://github.com/rstoyanchev/spring-websocket-test/blob/master/redeploy-glassfish.sh).
Watch the logs:
cd /glassfish4
less `glassfish/domains/domain1/logs/server.log`