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
0
votes
1 answer

How to autowire spring stream cloud bindings

I defined error and notification bindings in application.yml cloud: stream: bindings: error: destination: error binder: default notification: destination: notification binder: default How can i get…
Bukharov Sergey
  • 9,767
  • 5
  • 39
  • 54
0
votes
2 answers

Rejected STOMP message not redelivered to client over RabbitMQ

I have a basic setup where a consumer is listening to a "/queue/work" for items. The consumer is meant to only consume one item at a time. to do so i NACK any other item received concurrently and also UNSUBSCRIBE from the queue while the item is…
light_303
  • 2,101
  • 2
  • 18
  • 35
0
votes
1 answer

Spring integration IP - omit carriage return (\r\n) at the end of message through sockets

When I send byte array to response channel I expect to send only that byte-array to the socket. For example, in spring integration ip. @ServiceActivator(inputChannel = "serviceChannel") public byte[] service(byte[] byteArray) { return new…
Andrii Plotnikov
  • 3,022
  • 4
  • 17
  • 37
0
votes
1 answer

PollableChannel with Spring Integration

I have an interface Channels.java final String OUTPUT = "output"; final String INPUT = "input"; @Output(OUTPUT) MessageChannel output(); @BridgeFrom(OUTPUT) PollableChannel input(); I have another class where i perform…
0
votes
2 answers

Spring: How to configure Messaging Bridge poller with annotations

I want to be able to throttle requests received from my SubscribableChannel. I do not use a PollableChannel. Will i be able to do an equivalent of this:
0
votes
1 answer

simpMessagingTemplate doesn't send message from client to server

I want to exchange messages by web sockets between 2 java apps. I have the following server configuration: @Configuration @EnableWebSocketMessageBroker public class WebSocketConfig extends AbstractWebSocketMessageBrokerConfigurer { @Override …
gstackoverflow
  • 36,709
  • 117
  • 359
  • 710
0
votes
1 answer

How to solve "failed: Error during WebSocket handshake: Unexpected response code: 200" in spring websockets?

I am trying to subscribe to a particular channel in spring web sockets but while pointing to a URL using SockJs i getting the following error WebSocket connection to 'ws://localhost:8080/Spring/rest/user/chat/045/jmfz3b3j/websocket' failed: Error…
0
votes
0 answers

Spring-mvc - Error 500 while using messages

I'm a really beginner in Spring-mvc, and I'm pretty bad in understanding frameworks. I'm following a tuto, but I just encountered a problem. ( My project's files are paste below ) I've got a src/main/resources/messages_fr.properties containing a…
Motiss
  • 72
  • 1
  • 13
0
votes
1 answer

Spring Cloud Stream: JSON array cannot be cast to POJO list

I'm doing some tests of the content type auto-conversion of Spring Cloud Stream. As the spring-cloud-stream Guide shows. The json format of GreetingMessage({"greeting":"Hello, world"}) will be cast to POJO GreetingMessage object automatically when…
JasonS
  • 445
  • 1
  • 5
  • 17
0
votes
1 answer

How configure SimpleBrokerMessageHandler in SpringMessaging

I want to extend default behavior of DefaultSubscriptionRegistry. How can I configure SimpleBrokerMessageHandler to set custom SubscriptionRegistry in XML?
Alexey Vashchenkov
  • 233
  • 1
  • 4
  • 12
0
votes
1 answer

Spring Boot WebSockets notifications

In my Spring Boot application I'm trying to implement a notifications functionality based on WebSockets. I have provided a following configuration: @Configuration @EnableWebSocketMessageBroker public class WebSocketConfig extends…
alexanoid
  • 24,051
  • 54
  • 210
  • 410
0
votes
1 answer

How to use a Spring @MessageMapping from properties to set an annotation attribute

I'm working with SQS spring-boot:spring-cloud, I want to externalize the parameter, retrieve the value based on the active profile @MessageMapping("static.queue") public void receiveMessage(Payload payload) { // ... } is there any way to solve…
0
votes
1 answer

Some example using SubProtocolWebSocketHandler and stompSubProtocolHandler?

I can't find examples of use of stompSubProtocolHandler and SubProtocolWebSocketHandler? I need extend this SubProtocolWebSocketHandler class? private static class ProducerStompSessionHandler2 extends SubProtocolWebSocketHandler { public…
Sergio
  • 441
  • 9
  • 22
0
votes
1 answer

spring websocket+rabbitmq stomp:How can i get all online user and disconnect some user’s connect?

If spring store user's websocket session,how can get it,if i use someHandler to put session in a map,that mean map‘s size maybe bigger than 10w+,I don't think it good。 SessionHandler.java package hello; import org.slf4j.Logger; import…
Dreampie
  • 1,321
  • 4
  • 17
  • 32
0
votes
1 answer

Can I get JMSXDeliveryCount and JMSDestination using org.springframework.messaging.Message

I am using Spring JMS 4.1.2, and I am using org.springframework.messaging.Message as the input payload in the JMS Listener. I am listening to an Active MQ Queue, and I would like to know if it is possible to obtain the JMSXDeliveryCount and…
jcb
  • 195
  • 1
  • 4
  • 20