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

Pushing my custom object data to a message queue using @sendto

I am using spring-messaging with websockets. Currently I have a @MessageMapping controller to get data from websocket client. @MessageMapping("/path1") @SendTo("/queue/path1-data") public BrokerPacket myController(String message) throws Exception…
YetAnotherBot
  • 1,937
  • 2
  • 25
  • 32
0
votes
1 answer

Auto-generate Unique Key

I am working with a Spring MVC project. We are using the tags for handling our bilingual requirements. Currently we have two resource files, English and French. I am trying to back away from hard-coding these files and instead populate new keys and…
Fering
  • 322
  • 2
  • 18
0
votes
2 answers

how to register custom converters for spring messaging, web sockets @DestinationVariable or jms @Header

I'm integrating spring web sockets capability into an existing spring mvc application, everything works as expected, except for enabling custom Spring Conversion on my inbound messages via @DestinationVariable. Now I already have custom converters…
0
votes
1 answer

How to detect Spring websocket stomp subscription messages (frames)?

I'm using Spring 5: how do I detect SUBSCRIBE messages from a Stomp client? Per my understanding, @SubscribeMapping should make my controller method be called whenever a client subscribes to a topic, but that's not happening. Here's my server…
watery
  • 5,026
  • 9
  • 52
  • 92
0
votes
1 answer

Spring Messaging JMS reply interceptor

I have a @JmsListener method that receives a parameter and returns an object instance, all of that working with XML and the JAXB marshalling. @JmsListener( containerFactory = ..., destination = ..., selector = ... ) public…
0
votes
1 answer

Spring Messaging/ActiveMQ Acknowledged Message not received

I have been working on this issue for a while now and decided to ask for some help. I have the following scenario. ActiveMQ server listening on port 61614. Two WebSocketStompClient's are connecting to the following queues; Client1:…
Nas
  • 1
  • 3
0
votes
1 answer

Why are ID and TIMESTAMP declared as transient headers in Spring Integration?

I'm trying to send/receive messages via Spring Integration's AMQP in/outbound adapters and I'm facing this problem. After finding Gary's answer here, I started to investigate if my app sets a message ID correctly. In fact, it's taken care of…
0
votes
2 answers

SQS Receiver - Spring Boot

I was trying to create a SQS queue listener in my spring boot app using the code below AmazonSQSAsyncClient amazonSQSAsyncClient= new AmazonSQSAsyncClient(getProfileCredentialsProvider()); However AmazonSQSAsyncClient seems to be deprecated. Is…
Punter Vicky
  • 15,954
  • 56
  • 188
  • 315
0
votes
0 answers

Spring integration JMX messages are missing when deployed in weblogic

With the below code I am trying to send messages other application. In Tomcat, working fine - messages sent is equal to messages received in jconsole. but when I deploy in weblogic, found sent message count is not matching with received count in…
Phani Kumar
  • 61
  • 2
  • 10
0
votes
1 answer

Enriching Collection

I would like to enrich collection of orders with person details. Suppose I've (example is in json): [ { "orderId": 123, "quantity": 5, "buyerId": "84aa820f-2301-4d01-8c4c-2b71204da7dd" }, { "orderId": 124, …
Dariss
  • 1,258
  • 1
  • 12
  • 27
0
votes
1 answer

Message conversion after retrieving it from activemq topic

I wanted to implement messaging between microservices using ActiveMQ as a broker, but after setting everyting as should be, one thing got me stuck. Before I describe the problem, here is I am approaching messaging: Producer…
sh1nen
  • 199
  • 4
  • 18
0
votes
1 answer

how to handle messages after splitting (even if there will be errors) in Spring Integration?

I have an application powered by Spring Integration. in a nutshell the scheme is: |-> activator gateWay -> splitter -> transformer -> router |-> ... |->…
m.gavr
  • 83
  • 1
  • 9
0
votes
1 answer

External Messaging in Spring Integration

I would like to ask, why amqp / jms is implemented as Inbound and Outbound Channel Adapters. They role is same as Message Channel, so if they would be implemented as MessageChannel, then it could be easily used in different components e.g. directly…
Dariss
  • 1,258
  • 1
  • 12
  • 27
0
votes
1 answer

How to register stomp subscriptions in Spring

I want to control stomp subscription in my Spring application with spring-messaging v.4.2. This is my Spring app configuration for stomp: @Configuration @EnableWebMvc @ComponentScan(basePackages =…
Tobia
  • 9,165
  • 28
  • 114
  • 219
0
votes
1 answer

Is there a way to use ApplicationEventPublisher with delayed event in Spring?

I would need to use event-driven mechanism. using ApplicationEventPublisher. I would want to set a delay for the message before reach to the endpoint that listening to this event. Is there such a way? found…
USer22999299
  • 5,284
  • 9
  • 46
  • 78