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
4
votes
0 answers

Why WebSocketStompClient has connect but doesn't have disconnect method?

To connect to url(as client) in my code I have following code @Autowired private WebSocketStompClient client; .... client.connect(wsUrl, handler); usually if we have connect method we have disconnect method, start/stop and so on. but…
gstackoverflow
  • 36,709
  • 117
  • 359
  • 710
4
votes
1 answer

Send STOMP ERROR from Spring Websocket program

I have a Spring Websocket Stomp application that accepts SUBSCRIBE requests. In application I have a handler for SUBSCRIBE, that is, @Component public class SubscribeStompEventHandler implements ApplicationListener { …
onkami
  • 8,791
  • 17
  • 90
  • 176
4
votes
0 answers

@SubscriptionMapping for broker channel in Spring's STOMP

Is the following Spring's web socket configuration legal? @Configuration @EnableWebSocketMessageBroker public class WebSocketConfig extends AbstractWebSocketMessageBrokerConfigurer { @Override public void…
Pavel Horal
  • 17,782
  • 3
  • 65
  • 89
4
votes
1 answer

Websocket filtering messages for individual users

I am creating a spring websocket application using RabbitMQ as a broker. Is there a way to filter what web socket messages a user will see on a channel? Multiple people will be subscribed to the channel.
redwhite
  • 405
  • 1
  • 4
  • 10
4
votes
4 answers

@MessageMapping with placeholders

I am working with Spring-websocket and I have the following problem: I am trying to put a placeholder inside a @MessageMapping annotation in order to get the url from properties. It works with @RequestMapping but not with @MessageMapping. If I use…
crm86
  • 1,394
  • 1
  • 21
  • 44
4
votes
0 answers

Unable to send message to websocket from another service

I followed the tutorial here to setup websockets within my web application, and below is the resultant code. Now I thought if I write to the topic from another class (LocationManagerImpl.java) in my application, I would be able to send the message…
Rishabh
  • 380
  • 4
  • 14
4
votes
2 answers

The functionality of @Service annotation in Spring

This is a kind of "what is @Service annotation?" question, but with another approach. Because, I am not sure what is going on here: I have a controller class: @Controller public class GreetingController { @Autowired SomeBean someBean; …
Mert Mertce
  • 1,614
  • 3
  • 21
  • 32
4
votes
2 answers

How to use a custom message from my .properties file, but using the parameters provided by the @Size annotation?

That should be a simple problem but I couldn't find a straight forward solution. I'm using the Spring Message Resource to provide all the texts on my system from a .properties file. I need that for internationalization questions and cannot use the…
Almir Campos
  • 2,833
  • 1
  • 30
  • 26
4
votes
2 answers

How to reply to unauthenticated user in Spring 4 STOMP over WebSocket configuration?

I'm experimenting with Spring 4 WebSocket STOMP application. Is there a way to reply to a single unauthenticated user on condition that each user has unique session ID? Right now I can only either broadcast a message or send it directly to an…
Anton Moiseev
  • 2,834
  • 4
  • 24
  • 30
3
votes
0 answers

Login Redirect goes to STOMP endpoint

I have a relatively simple setup where I am using stomp over websockets to retrieve data from my backend to avoid resetting the session timeout. I am running into an issue that mostly happens when I restart my server. I reboot and I am properly…
Deadron
  • 5,135
  • 1
  • 16
  • 27
3
votes
1 answer

Stomp broker with Redis as full featured message broker

Is there a way to connect redis as a full featured stompbroker? As per redis documentation, we can use redis as message broker. we are planning to use redis as a message broker for our chat product. I am trying to connect to redis but its failing.…
3
votes
3 answers

cannot change language in spring application

I'm trying to change language using tag. But it doesn't get recognized. language.jsp <%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>

Dil.
  • 1,996
  • 7
  • 41
  • 68

3
votes
1 answer

Backoff settings for spring cloud stream rabbit

I'm still setting up an example messaging system using rabbitmq and spring cloud messaging and am encountering a bug (?), or I'm misunderstanding the documentation. (Used spring-boot version 2.0.3.RELEASE) For the sake of this example, I want the…
baao
  • 71,625
  • 17
  • 143
  • 203
3
votes
1 answer

Spring Integration JMS creating ActiveMQ queue instead of topic

I am trying to use an ActiveMQ broker to deliver a message to two consumers listening on an automatic topic, employing Spring Integration facilities. Here are my configuration beans (in common between publishers and…
3
votes
1 answer

If resource server are supposed to be stateless, how to send message to queue with websocket

I am currently working in messaging system, where resource server is stateless with oAuth 2. Now, i have to send a message to single user with a queue but problem is that spring messaging needed a session in other to send a messaging as described in…
shree
  • 304
  • 1
  • 12
1 2
3
17 18