7

I'd like to use Websockets with a Spring MVC-powered web app. I've read o jWebsockets and bristleback, but I am wondering if that is the best way to integrate. I am sure someone has done this before and has some tips what works and what does not...

Thanx!

1
  • Sven, makes sense re-evaluate the selected answer choice Commented Feb 9, 2015 at 17:54

5 Answers 5

25

since Springframework 4.0 M1 Websocket are supported, see http://blog.springsource.org/2013/05/22/spring-framework-4-0-m1-websocket-support/

Edit - 08 january 2014: Springframework 4.0 released and supports websocket, have fun.

Sign up to request clarification or add additional context in comments.

1 Comment

I love people that keep their answers up to date.
8

Here is an update on 4.0 M2, see http://blog.springsource.org/2013/07/24/spring-framework-4-0-m2-websocket-messaging-architectures/

Comments

7

Spring MVC will offer you no help here - it supports HTTP traffic using the Servlet and Portlet APIs only. Websockets, I believe, are not HTTP-based.

Comments

3

Spring has plans to implement the WebSocket servlets offered by many popular application servers. The main problem is that, as each server comes out with it's own webscocket implementation, they all vary greatly. The Atmosphere Framework is available, and supports cross server, cross browser implementations.

There are some blog posts available, like combining atmosphere websockets and comet with Spring MVC

I would suggest you research the framework before deciding it's right for you. They have a github src repo with demo's and documentation available as well.

Comments

1

It seems that support is planned, https://jira.springsource.org/browse/SPR-9356 (but they'll need to work around the lack of Servlet API support)

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.