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:

1267 questions
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,075
  • 2
  • 15
  • 19
0
votes
2 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
  • 149
  • 2
  • 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
0
votes
1 answer

No such method issue with websockets and spring 4 and tomcat 7

Hi im getting the following issue with websockets and spring 4 and tomcat 7. I deployed the application on tomcat and when i try to get the websocket to work i get the following error. Anyone got any ideas as to where my conflict is, i know its a…
user1555190
  • 2,057
  • 5
  • 35
  • 62
0
votes
1 answer

Return raw strings from @SubscribeMapping with STOMP/WebSockets/Spring

I've got a Spring-MVC controller using STOMP over websockets. Everything works fine apart from the String received in my STOMP JavaScript client upon subscription has been escaped, presumably by Spring. All the examples I can find on the web and in…
Adam
  • 32,907
  • 8
  • 89
  • 126
0
votes
1 answer

Remove dependency on Jackson

In Spring-MVC you have the ability to remove the Jackson library as a dependency and replace it with your own using this method: protected void configureMessageConverters(List> converters) I am trying to do the same thing…
Cheetah
  • 12,515
  • 28
  • 93
  • 167
0
votes
1 answer

How to send a STOMP message with Spring4 when controller is mapped

I have the following code... @Controller @RequestMapping("/stomp/**") public class StompController { @MessageMapping("/hello") @SendTo("/topic/greet") public Greeting greet(HelloMessage message) throws Exception{ …
Jackie
  • 17,579
  • 26
  • 116
  • 227
0
votes
1 answer

Providing a web app with real-time updates for domain entities from a Spring backend

On the server side, I use Spring 4. On the browser side, I use Ember.js. My application has entity classes such as Person and Product. These entities are in use both on the server and browser, and are modeled identically. For example: //this is on…
0
votes
1 answer

Junit and spring websockets - after each test I get a weird exception

I am getting the following exception when my jUnit test is ending: 7 May 2014 18:06:29 INFO GenericApplicationContext - Closing org.springframework.context.support.GenericApplicationContext@7b0133c2: startup date [Tue May 27 18:06:09 IDT…
Urbanleg
  • 5,402
  • 14
  • 64
  • 128
0
votes
1 answer

Spring 4 WebSockets subscribe to a topic

Is it possible to map a method in a spring managed bean to a topic subscription using spring messaging? I've looked at the examples here: http://assets.spring.io/wp/WebSocketBlogPost.html including the example stock application but it looks like…
Michael Nelson
  • 515
  • 1
  • 4
  • 8
0
votes
1 answer

Spring WebSockets exception when using Spring 4.0.3.RELEASE

I have the following web socket configuration @Configuration @EnableWebSocketMessageBroker public class WebSocketConfig extends AbstractWebSocketMessageBrokerConfigurer { private static final long heartbeatTime = 60000L; // 1 minute …
Saurabh Kumar
  • 14,849
  • 42
  • 118
  • 186
0
votes
1 answer

Spring 4 websocket not closing on application shutdown

So this is a strange one. I have a basic Spring 4 websockets application running on Glassfish 4 using RabbitMQ for the message broker, nothing fancy. I was testing the durability of the websocket clients (one in java and one in javascript using…
agaddie
  • 51
  • 3
0
votes
2 answers

Setting message size for spring sockjs websocket server

I have used spring sockjs server implementation for websockets. It supports messages upto 2kb but above that the websocket connection breaks -gives an 1006 error. If I reduce the message size, then it runs ok. I went through the docs as well as…
cpandey05
  • 1,111
  • 2
  • 15
  • 30
-1
votes
1 answer

Property 'over' does not exist on type 'typeof @stomp/stompjs/index'

I am trying to create a chat app using spring websocket and using angular as the frontend. I am importing Stomp and SockJS: import SockJS from "sockjs-client" import * as Stomp from "@stomp/stompjs" And then using it as: let socket = new…
Josh
  • 41
  • 6
1 2 3
84
85