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

How to filter emails based on subject while polling in Spring Integration

I would like to poll emails based on subject. If we would like to poll emails which has the Subject as "Test”, the below code fetches all the emails. But we need to filter the ones with subject "Test". How can I filter based on…
2
votes
2 answers

Attachment's are not sent with spring mail

i'm trying to send mails with spring mail's JavaMailSender. i first implemented the version without attachments but now i need to add attachments. but, although the attachments are added to MimeMessageHelper (i can see on debug mod that the parts…
Fatih Doğmuş
  • 411
  • 1
  • 4
  • 10
2
votes
1 answer

How many endpoint and topic need for Direct ,Group,Channel in Spring Websocket?

I want to write application that make messaging between users, Messages that send between users is in 3 types Direct Channel: just send from admin Group My application will save messages in RDBMS. When new message send and receiver user is online…
2
votes
1 answer

Ensure that a message is received

I need to write a application that can send push notifications at clients. But sometimes clients are disconnected, so I'd like to store notifications and send them to clients when they reconnect. Is there a way to achieve this ? I need a way to know…
Oreste Viron
  • 3,592
  • 3
  • 22
  • 34
2
votes
1 answer

How to prevent Spring from generating default simpSessionId?

I am trying to set up spring with websockets and STOMP. On the client, I send a header variable 'simpSessionId':%session_id% However, on receiving the message, spring it always places the supplied header in a key called nativeHeaders and a default…
Marc
  • 6,773
  • 10
  • 44
  • 68
2
votes
1 answer

Spring Websocket url hits RequestMapping but not MessageMapping

I'm having trouble setting up a websocket configuration in an existing web application. @Configuration @EnableWebSocketMessageBroker public class WebsocketConfig extends AbstractWebSocketMessageBrokerConfigurer{ @Override public void…
Marc
  • 6,773
  • 10
  • 44
  • 68
2
votes
1 answer

Spring Integration Routing Slip

I am trying to implement the routing slip using spring integration, The configuration is as follows @Bean @Transformer(inputChannel = "inputChannel", outputChannel = "replyChannel") public HeaderEnricher headerEnricher() { return new…
2
votes
1 answer

Integrating Spring controllers message mapping and Artemis

I'm researching switching to WildFly 10 and, subsequently, Artemis. I've set up a simple Spring Websocket project, as described here: https://spring.io/guides/gs/messaging-stomp-websocket/. The meat of the project are…
2
votes
1 answer

spring:message (I18n) giving error : No message found under code 'property.name' for locale 'en'

I am implementing spring internationalization(i18n). It is working fine in my local environment on eclipse. But when i deploy it on a dev server it gives this error. javax.servlet.ServletException: javax.servlet.jsp.JspTagException: No message found…
2
votes
1 answer

NullPointerException on SimpMessagingTemplate in Spring

I am building an application that will send messages using STOMP over websockets. I want to send messages without a request being made by the client. According to the documentation, I can do this by using convertAndSend. However when I try and do…
andrewvincent7
  • 151
  • 2
  • 7
2
votes
1 answer

Spring MessageBuilder vs Spring Integration MessageBuilder

Spring 4 introduced org.springframework.messaging.support.MessageBuilder. And there is one existing org.springframework.integration.support.MessageBuilder in Spring Integration framework. So when I am using Spring Integration with Spring 4,…
luboskrnac
  • 23,973
  • 10
  • 81
  • 92
2
votes
1 answer

Spring+RabbitMQ make queues non durable

I am using RabbitMQ as a Stomp broker for Spring Websocket application. The client uses SockJS library to connect to the websocket interface. Every queue created on the RabbitMQ by the Spring is durable while topics are non durable. Is there any…
Damian
  • 593
  • 6
  • 27
2
votes
1 answer

Creating a retry delay within a transaction to clean up sftp inbound channel files

I have a sftp:inbound-channel-adapter which synchronises files from a remote folder to a local folder. When it spots a file with a .xml extension it creates a Message and a new transaction and sends it to the routerChannel channel. The…
David Newcomb
  • 10,639
  • 3
  • 49
  • 62
2
votes
1 answer

Autowired websockets SimpMessagingTemplate produced null on all resources

Whole magic here what it crashes only on linux\server\laptop machine and perfectly working(autowiring) on mac. I have @EnableWebSocketMessageBroker @Configuration public class WebSocketConfiguration extends AbstractWebSocketMessageBrokerConfigurer…
2
votes
2 answers

How to register my custom MessageConverter to the SimpleMessageListenerContainerFactory?

I have customer converter that implements the MessageConverter interface. However, I dont see a way to register it with the SimpleMessageListenerContainerFactory. As a result I get a error when I try to read a message from SQS that is in the source…