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

Can not import package org.springframework.messaging and use MessageHandler interface

I have spend quite some time trying to figure out how do I import and use MessageHandler interface from spring framework. So here is what I do with my IntelliJ Idea IDE: import org.springframework.messaging; @EnableWs @Configuration public class…
Sold Out
  • 1,321
  • 14
  • 34
1
vote
0 answers

How to configure WebSocketTransportRegistration on the client side? BeanCurrentlyInCreationException

I have server and client applications which Interact via web sockets. question about client app config. I have the following configuration: @Override public void configureMessageBroker(MessageBrokerRegistry config) { …
gstackoverflow
  • 36,709
  • 117
  • 359
  • 710
1
vote
1 answer

Override ExecutorSubscribableChannel in Spring?

For the purpose of custom logic I'd need to override ExecutorSubscribableChannel in Spring (Websocket side). How I can possibly do that?
onkami
  • 8,791
  • 17
  • 90
  • 176
1
vote
1 answer

Spring messaging AMQP need to take reply from required group about message delivery

I have a question regarding spring-messaging (spring integration + amqp) with RabbitMQ. I have an application which based on microservices architecture. One service publish message in following…
1
vote
1 answer

Intercept incoming message of Spring Cloud Stream SubscribableChannel

Since method postReceive of org.springframework.messaging.support.ChannelInterceptor is not invoked in org.springframework.messaging.SubscribableChannel. Is there any way to intercept all of incoming messages for method…
1
vote
1 answer

Spring: Send multiple messages using a loop

Let's say I have a custom module in Spring XD (I'm using Spring XD + Spring Integration + hibernate). The module basically gets something from the DB (let's say I store it using an hibernate entity, so I use an objet called "DataFromDB"). DataFromDB…
Columb1a
  • 463
  • 2
  • 11
  • 25
1
vote
2 answers

Using ActiveMQ, it is possible to force the broker to resend advisory messages?

I am planning a "consumer aware" service that will handle some type of information only if there is at least one consumer on that topic. Using spring, I was able to create the following code to monitor when consumers connect or disconnect from a…
Raphael do Vale
  • 931
  • 2
  • 11
  • 28
1
vote
1 answer

DefaultJmsListenerContainerFactory / DefaultMessageListenerContainer Dynamic Scaling: How does it work?

I am trying to get my Spring 4 JMS application to dynamically scale down after a lot of messages were processed. I currently have a concurrency of 1-3 consumers and I am able to see a successful scaling up toward the maximum consumers, but once the…
jcb
  • 195
  • 1
  • 4
  • 20
1
vote
0 answers

Send a message to spring-messaging listener?

How can I send a message to one Spring-messaging @MessageMapping anotated method? I have the next code: @MessageMapping("/miprocesadorpagos") public void miProcesadorPagos( @Payload final Message message ) { …
Sergio
  • 441
  • 9
  • 22
1
vote
1 answer

How to mimic SimpMessagingTemplate.convertAndSendToUser using RabbitTemplate?

So I've been reading about Spring Message Relay (Spring Messaging stuff) capability with a RabbitMQ broker. What I want to achieve is as follows: Have a service (1), which acts as a message relay between rabbitmq and a browser. This works fine now.…
travikk
  • 87
  • 7
1
vote
1 answer

Does Spring Cloud Stream project needs web server (Tomcat) or not?

I'm using Spring Cloud Stream to write messaging-driven microservices. Project A: Producer (Spring Cloud Stream, integrated tomcat and its port: 8080) Project B: Consumer (Spring Cloud Stream, integrated tomcat and its port: 8081) Message Broker:…
JasonS
  • 445
  • 1
  • 5
  • 17
1
vote
0 answers

Spring WebSocketStompClient won't connect using SockJsClient

So, i was trying to replicate sockJs code from an excellent example by Rossen Stoyanchev here:…
1
vote
1 answer

Routing Slip Spring Integration (4.2)

I am trying to implement routing slip (EI Pattern) using Spring integration. The configuration I have done is @Bean @Transformer(inputChannel = "routingServiceChannel") public HeaderEnricher headerEnricher() { return new…
1
vote
3 answers

Get principal inside scheduled method for Spring Websocket messaging

Want to send notifications to specific client with websockets. Have a scheduled task for sending notifications, but cannot get Principal inside that task. Found this post, but as I know Spring scheduled methods must be parameter-free.…
0bj3ct
  • 1,400
  • 4
  • 22
  • 51
1
vote
1 answer

How to reference a spring form input placeholder attribute value to a message source property?

Is it possible to retrieve a message from a .properties message-file using spring:message tag (spring tag library) within a spring-form:input tag (spring form tag library, used for data-binding). src/main/resources > texts.properties…
LowLevel
  • 1,085
  • 1
  • 13
  • 34