Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

java-MagicWang/spring-websocket-test

Repository files navigation

Overview

Demonstrates Spring WebSocket and SockJS support in Spring Framework 4.0, currently in development.

IMPORTANT: The master branch contains examples using Spring's WebSocketHandler including with SockJS fallback options. The endpoint branch contains examples of using JSR-356 Endpoint and @ServerEndpoint.

NOTE: You'll most likely also want to check out the Stock Portfolio sample, which demonstrates the use of a higher-level messsaging protocol over WebSocket.

Tomcat

Check the Tomcat home page for the latest Tomcat 8 release, currently RC1 alpha.

After unzipping Tomcat 8, set TOMCAT8_HOME as an environment variable and use deployTomcat8.sh and shutdownTomcat8.sh in this directory.

Open a browser and go to http://localhost:8080/spring-websocket-test/index.html

Jetty 9

The easiest way to run on Jetty 9.0.4:

mvn jetty:run

Open a browser and go to http://localhost:8080/spring-websocket-test/index.html

Note: To deploy to a Jetty installation, add this to Jetty's start.ini:

OPTIONS=plus
etc/jetty-plus.xml
OPTIONS=annotations
etc/jetty-annotations.xml

Glassfish

Glassfish 4 provides JSR-356 support.

Download Glassfish 4 and unzip the downloaded distribution.

Start the server:

cd <unzip_dir>/glassfish4
bin/asadmin start-domain

Deploy the WAR file using the script in this directory.

Open a browser and go to http://localhost:8080/spring-websocket-test/index.html

Watch the logs:

cd <unzip_dir>/glassfish4
less `glassfish/domains/domain1/logs/server.log`

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /