Questions tagged [spring-messaging]

A Spring Framework module providing APIs and base classes for messaging.

Spring Messaging is a module of the Spring Framework () providing APIs and fundamental classes for other Spring messaging projects such as and .

258 questions
6
votes
1 answer

StompBrokerRelayMessageHandler - Transport failure: java.lang.IllegalStateException: No TcpConnection available

We use STOMP broker relay(External Broker - ActiveMQ 5.13.2) in our Project see https://docs.spring.io/spring/docs/current/spring-framework-reference/web.html#websocket-stomp-handle-broker-relay We use following…
snieguu
  • 2,073
  • 2
  • 20
  • 39
6
votes
1 answer

Why does STOMP functionality in spring-websocket depend on Spring MVC?

Currently, I am trying to use STOMP with websockets using webflux. In order to send a message to a STOMP topic, I need to use SimpMessagingTemplate, which is contributed by spring boot auto configuration when I add @EnableWebSocketMessageBroker But…
Ashok Koyi
  • 5,327
  • 8
  • 41
  • 50
6
votes
2 answers

Sending Error message in Spring websockets

I am trying to send error messages in Spring websockets with STOMP over SockJS. I am basically trying to achieve which is being done here. This is my Exception Handler @MessageExceptionHandler @SendToUser(value = "/queue/error",broadcast =…
Karthik
  • 4,950
  • 6
  • 35
  • 65
6
votes
2 answers

How to set waiting timeout on JmsMessagingTemplate.sendAndReceive

I'm using sendAndReceive from JmsMessagingTemplate in an MVC controller but if no reply message is sent it seems to keep waiting on a reply forever. The documentation states that: Returns: the reply, possibly null if the message could not be…
ZT827
  • 161
  • 1
  • 2
  • 12
6
votes
2 answers

How to avoid loop in this code

I am sending prices to customers (10000+) but below code has loop that causes delays in the process for customers waiting for calculations. PriceVisibleForCustomer = Price + CustomerMargin Price - changing every 300ms - sent from central store,…
user1308908
5
votes
1 answer

Change websocket scope (from application to session/view)

I created a basic web socket with a tutorial. Here is a configuration: @Configuration @EnableWebSocketMessageBroker public class WebSocketConfig extends AbstractWebSocketMessageBrokerConfigurer { @Override public void…
degath
  • 1,530
  • 4
  • 31
  • 60
5
votes
2 answers

Error while connecting to Spring Boot RSocket server from RSocket-Java Client

I am having issue while connecting to Spring Boot RSocket application over TCP. The client when using RSocketRequester works fine but when I try to connect using RSocketFactory client it keep getting errors. Code below. RSocket rSocket =…
user3549576
  • 99
  • 1
  • 4
  • 17
5
votes
1 answer

How to receive GenericMessage with Object payload instead of string from MessageCollector

I try to test message sending and receiving via spring-cloud-stream using MessageCollector. When i am using native java serialization for stream cloud all works fine, but when i change serialization to json, MessageCollector returns me…
5
votes
3 answers

Spring web socket messaging - subscribe and send initial message

With the Stomp broker relay for web socket messaging, I can subscribe to a destination /topic/mydest. This creates a broker subscription and receives all messages that something in the system triggers for this broker destination, which happens when…
rainerfrey
  • 560
  • 4
  • 14
5
votes
1 answer

DefaultJmsListenerContainerFactory and Concurrent Connections not shutting down

I am using Spring 4.x's DefaultJmsListenerContainerFactory in order to connect to an ActiveMQ Queue, process the messages from that queue using a @JmsListener and then push the message to a topic on the same ActiveMQ broker. I am using a single…
jcb
  • 195
  • 1
  • 4
  • 20
5
votes
3 answers

java.lang.IllegalStateException: A SockJsMessageCodec is required but not available:

Hello Im new in websocket . I dont know why im getting this exception. java.lang.IllegalStateException: A SockJsMessageCodec is required but not available: Add Jackson 2 to the classpath, or configure a custom SockJsMessageCodec. at…
Secondo
  • 129
  • 1
  • 8
4
votes
3 answers

Correct usage of LoadbalanceRSocketClient with Spring's RSocketRequester

I'm trying to understand the correct configuration and usage pattern of LoadbalanceRSocketClient in a context of SpringBoot application (RSocketRequester). I have two RSocket server backends (SpringBoot, RSocket messaging) running and configuring…
maximdim
  • 8,041
  • 3
  • 33
  • 48
4
votes
2 answers

Listen message queue SQS with Spring Boot not works with standard config

I'm unable to make works queue listener with Spring Boot and SQS (the message is sent and appear in SQS ui) The @MessageMapping or @SqsListener not works Java: 11 Spring Boot: 2.1.7 Dependencie: spring-cloud-aws-messaging This is my config…
Maryo
  • 483
  • 2
  • 13
  • 25
4
votes
0 answers

Is there request scope in spring websockets ?(websocket scope == session scope)

I know that spring has websocket scope. But it means that it will collect values within session. I need to have something like request scope. It shoud start when we receive values in controller: @MessageMapping("/common/url") public void…
gstackoverflow
  • 36,709
  • 117
  • 359
  • 710
4
votes
1 answer

Spring STOMP Broker Relay + RabbitMQ Cluster with HA Proxy fronting each for load balancing

I am designing a system where a huge number of real-time data generated from devices is to be transferred to subscribers preferably over websockets. I have decided to use Spring STOMP Websockets as it was quicker to set-up, understand and had a few…
1
2
3
17 18