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
1
vote
1 answer

What is the difference between Spring JMS and Spring Messaging?

There are two libraries: spring-messaging and spring-jms. They both have got similar classes: MarshallingMessageConverter, MarshallingMessageConverter, etc. Why do we need these similar libraries?
voipp
  • 1,243
  • 3
  • 18
  • 31
1
vote
0 answers

Custom spring websocket security with rabbitmq

I'm working with websocket to push notification using rabbitmq like a message broker. In controller i using SimpMessageTemplate to convertAndSendToUser a message via the nick name of user @PostMapping("/{nickName}/notification") public void…
1
vote
0 answers

Error thrown when subscribing to privileged STOMP topic: Failed to send message to ExecutorSubscribableChannel[clientInboundChannel]

I'm trying to authenticate some of my STOMP topics using Spring Security: @Override protected void configureInbound(MessageSecurityMetadataSourceRegistry messages) { messages …
Tom Haines
  • 123
  • 3
  • 9
1
vote
2 answers

Spring RSocket: @DestinationVariable for metadata is not being extracted (not using WebSockets)

I am trying to build some microservices based upon Spring and RSocket. In particular, I need to stream files between two services, so the 'client' sends a Flux as the payload to the 'server'. This works great, but I am presenting a simple echo…
1
vote
2 answers

Unable to read the payload of a requestResponse call at the server side

Consider the following TS client code snippet below : this.rSocketClient.connect().subscribe({ onComplete: socket => { const endpoint = ‚accesscode’; socket.requestResponse({ data: clientId, //the clientId is a…
1
vote
0 answers

SimpleMessageListenerContainer still picks up a message after calling stop

I have an AWS SQS Queue with no retry (MaxReceiveCount is set 1). I have setup a DeadLetter Queue for the same. I am using spring-cloud-aws-messaging, below is my listener class @Component public class MyListener implements ProcessingFinaliser { …
1
vote
1 answer

Inheritance with SqsListener

I have a strange situation that I don't understand. I would like to decide in a bean, should I enable or disable the SQS listener. So I've created a config class with a definition: @Bean MyListener createListener(Features f){ return…
Kaskader
  • 191
  • 2
  • 2
  • 11
1
vote
2 answers

How to resolve authentication parameter with Spring messaging RSocket @ConnectMapping

@ConnectMapping("setup") public void setup(@AuthenticationPrincipal Principal principal) { } @MessageMapping("hello") public void hello(@AuthenticationPrincipal Principal principal) { } The two mappings are on the server side. When the RSocket…
Gan
  • 188
  • 2
  • 7
1
vote
0 answers

Spans are not getting connected with Spring Integration and Jaeger

I have 2 services A and B. I'm calling an endpoint in B from A using Spring Integration with Spring Boot…
1
vote
1 answer

Amazon SQS Listener - Consuming message and setting attributes before failing the message

I've a fifo queue, and i'm using org.springframework.cloud.aws.messaging and here's what i'd like to do: Consume the message Try to handle it (inner logic) If handles fails - write new attribute on the message (without sending the message again…
1
vote
2 answers

Injecting dependency inside AbstractWebSocketHandler

How to inject a dependency inside a Web Socket handler: public class WebsocketHandler extends AbstractWebSocketHandler { @Autowired GreetingMap greetingMap; @Override protected void handleTextMessage(WebSocketSession session,…
quarks
  • 33,478
  • 73
  • 290
  • 513
1
vote
1 answer

My SQSListener returns body as messageID, And How do I get send MessageId with QueueMessagingTemplate Spring Boot?

I have 2 issues regarding Spring AWS-SQS sdk, (Or maybe I am doing it wrong). First is that I used CLI earlier and I managed to get the message Id of the sent message example: aws sqs send-message --queue-url…
IsaacK
  • 1,178
  • 1
  • 19
  • 49
1
vote
2 answers

How to get the list of users properly with Spring?

I want to get the list of all authenticated users. I took the basic spring-security example from the official Spring site. As it was recommended in other relative questions (51992610), I injected the DefaultSimpUserRegistry into the code. Still, the…
HoRn
  • 1,458
  • 5
  • 20
  • 25
1
vote
1 answer

Should we be using JmsOperations instead of JmsTemplate? (And similarly JmsMessagingOperations vs JmsMessagingTemplate)

My team and I were having a deep dive in overviewing one component, and we were discussing about a delegate implementation of a JmsTemplate. Diving into the code, and I found that in most scenarios, based on SOLID principles, we should expect in our…
R.Litto
  • 385
  • 3
  • 14
1
vote
1 answer

To build spring integration channel as spring websocket doesn't support messaging for non-stomp client

As we are not using stomp for our websocket server, spring doesn't offer message broker framework. My vision is to use spring messaging pub/sub with Redis message store for dev and migrate message broker from Redis to SQS+Dynamo for prod version.…