Questions tagged [spring-websocket]

A Spring Framework module that support WebSocket-style messaging in web applications (native websocket and with SockJS support), including use of STOMP as an application level WebSocket sub-protocol.

This implementation supports the websocket protocol (RFC6455) and the Java websocket API (JSR-356), with fallback options using SockJS.

See:

1417 questions
0
votes
1 answer

WebSocketMessageBrokerConfigurer

public abstract class AbstractSessionWebSocketMessageBrokerConfigurer extends AbstractWebSocketMessageBrokerConfigurer { @Override public void configureWebSocketTransport(WebSocketTransportRegistration…
Olivia
  • 135
  • 1
  • 10
0
votes
1 answer

NodeJS + SockJS + STOMP connection to Java Spring

I have a question - I have java spring web application with websocket,sockjs implementation following this tutorial https://spring.io/guides/gs/messaging-stomp-websocket/ and I need to connect with NodeJS to this server application. Server app is…
ememem
  • 316
  • 1
  • 3
  • 15
0
votes
1 answer

Spring Sockjs throwing error while establishing session with server hosted on Websphere -works fine for tomcat

Off late I have experiencing a lot of issue migrating spring sockjs module from tomcat to Websphere. Everything works fine in a tomcat environment but when I move the same to Websphere with java 1.7, it throws exception in mapping sockjs session ID.…
cpandey05
  • 1,241
  • 2
  • 17
  • 30
0
votes
0 answers

Spring build 4.1.2 is throwing error about missing method setRemoveOnCancelPolicy in ThreadPoolTaskScheduler

To get fix of issue https://jira.spring.io/browse/SPR-12283, I upgraded my Spring to version 41.2 after which it complains about missing method setRemoveOnCancelPolicy in ThreadPoolTaskScheduler. Following reported issue…
cpandey05
  • 1,241
  • 2
  • 17
  • 30
0
votes
1 answer

Spring 4 Websockets java.lang.NoClassDefFoundError

I'm new to spring websocket and following this tutorial.enter link description here. But I'm getting always this exception when running on jetty. Exeception. 2014-11-20 17:56:51.978::WARN: Nested in…
dup135
  • 43
  • 1
  • 10
0
votes
1 answer

Transport error in WebSocketServerSockJsSession - Cannot load platform configurator on a Spring Stomp websocket

I'm trying to add web sockets to my AngularJS application. I set up the web socket using Spring 4 on the server and Stomp SockJS on the client. I access the page at http://localhost:9000/#/project/1/bts after a grunt serve command. But I get a 500…
Stephane
  • 11,836
  • 25
  • 112
  • 175
0
votes
1 answer

How to config spring-websocket with 'WebApplicationInitializer'

How to config spring-websocket with 'WebApplicationInitializer': WebAppInitializer.java public class WebAppInitializer implements WebApplicationInitializer { @Override public void onStartup(ServletContext servletContext)throws ServletException { …
J.K
  • 303
  • 1
  • 3
  • 7
0
votes
1 answer

Unable to get ServletContext in Spring Controller when using Websockets

Client Code: $scope.socket = new SockJS("ws/ws"); $scope.stompClient = Stomp.over($scope.socket); $scope.stompClient.connect("guest", "guest",connectCallback, errorCallback); //in…
0
votes
1 answer

Without getting a meaasge how to send meassage to client in java spring web socket

I am having a use case where I need to send message to client web socket from server and so in return client will return the client info to server. I am trying to do a reverse of client server technology in web socket, where client will first invoke…
0
votes
1 answer

no mapping found for /info Spring 4 websockets

In spring controllers if I use @MessageMapping it is working, but if I changed to @Requestmapping(value=="",method=RequestMethod.POST) and try to use SimpMessagingTemplate to send the messages to client then it is unable to connect, it is showing…
Sravan Kumar
  • 253
  • 1
  • 2
  • 8
0
votes
1 answer

How to get message using websocket?

I am using websocket. I want to send "message" to server. ex) at Client function do_sync() { stompClient.send("/action/test", {}, "message"); } but i don't know how to get "message" at Controller. @MessageMapping("/test") public void sync()…
sona
  • 109
  • 1
  • 3
  • 11
0
votes
1 answer

Spring websocket end-poind and send message

I have an JMS listener, and I have to take the message, manipulate it and then redirect it to an page using websocket. Well, I’m just confused about the configuration, I have configured the WebSocketConfig: …
J.R.
  • 2,335
  • 2
  • 19
  • 21
0
votes
3 answers

AbstractWebSocketMessageBrokerConfigurer not found

I am creating a sample application using http://spring.io/guides/gs/messaging-stomp-websocket/ tutorial, i have added required jars but still getting "AbstractWebSocketMessageBrokerConfigurer cannot be resolved to a type" in WebSocketConfig.java…
dayanand
  • 147
  • 3
  • 5
0
votes
2 answers

Stomp.js and Spring WebSocket integration with Web MVC project

I am having one spring project which is running with '*.htm' extension , we have bind it in web.xml file. dispatcher
Jaspreet Singh
  • 105
  • 1
  • 3
  • 10
0
votes
0 answers

Spring websocket messaging template isn't publishing data from Controller without @Scheduler annotation

@Controller public class WebServiceController { private static Logger logger = LoggerFactory.getLogger(WebServiceController.class.getName()); @Autowired private SimpMessagingTemplate template; public static Response response; private final…
Vidya
  • 1
  • 1