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

spring broker channel access

I have a few questions one how to use spring websockets and messaging. So I have a program that interfaces with an external web service producer endpoint that will send data payloads to my web service consumer endpoint. While on the other end of my…
ron
  • 239
  • 3
  • 18
1
vote
2 answers

How do I configure SSL, username and password for Spring Boot Artemis on application.properties?

I'm using Spring Boot 1.3.1 and I can auto-configure my JMS components through application.properties. As I'm using Artemis as my message broker, I'm using spring-boot-starter-artemis, and as states the documentation in this link, all I have to do…
Raul G
  • 473
  • 1
  • 6
  • 18
1
vote
1 answer

How to get TimeToLive working on JmsTemplate?

I am trying to set the TTL on JmsTemplate but the messages never expire. When I set a TTL on a message using the ActiveMQ Web Console it does expire after the set period. This is what I have now:
ZT827
  • 161
  • 1
  • 2
  • 12
1
vote
0 answers

Spring 4.2 (Java JSR-356) WebSocket Client unable to connect

Hi I've been trying to make a message bus using Spring's Websocket support. There are a number of examples of sockjs clients connecting to Spring applications. I would now like to try using WebSockets to allow two spring applications to communicate…
1
vote
1 answer

How to connect to WebSocket via HandlerInterceptorAdapter

I'm trying to implement Spring Websocket with simple broker, SockJS and STOMP. My application handles authentication in a custom interceptor (called SecurityInterceptor) which extends the HandlerInterceptorAdapter class. I want the HTTP requests…
1
vote
1 answer

Spring Integration jms message driven channel adapter fails

I am using spring integration 4.1.0 to implement message consumption from TIBCO EMS queue using jms-int:message-driven-channel-adapter I have 9 different message driven channel adapter listening at different server in different queue. Below is how…
zdesam
  • 2,936
  • 3
  • 25
  • 32
1
vote
1 answer

Spring SimpMessagingTemplate

I have an application which receive some data from RabbitMQ. Everything works fine, I mean in class where I have annotation @EnableScheduling. @Scheduled(fixedDelay = 5000) public void volumeGraphData() { Random r = new Random(); Graph…
1
vote
0 answers

Send a message with SockJS to Spring Websocket handler over RabbitMQ

I'm developing message-broker communication between 2 applications: Grails client and Spring Boot micro service. To make my client-side updated in long-polling manner I use WebSockets. I've successfully configured Grails and Spring Boot to use web…
ybondar
  • 399
  • 2
  • 18
1
vote
1 answer

Spring security/Spring session/Web sockets

We are attempting to use a combination of spring session, spring security and websockets to implement security for a websocket API without using cookies. Ideally we would be using a authorization header or authentication using the websocket/stomp…
1
vote
1 answer

Adding HTML Link to Spring RedirectAttribute Messages

We would like to add a html clickable link to an informational message (Spring RediractAttribute/Flash Message) after an end user successfully submits a form on our website. So, the end would see the following (flash) messages: Success Object…
hooknc
  • 4,854
  • 5
  • 31
  • 60
1
vote
1 answer

MessageListenerContainer with MessageHandler?

If I use Spring Integration with XML-Configuration, a Message Listener can be done like the following:
Smoothi
  • 283
  • 1
  • 3
  • 15
1
vote
0 answers

Detecting disconnects using Spring messaging (websockets / STOMP)

We're using spring-messaging websocket with STOMP. Now we've defined multiple @SubscribeMapping methods, but is there also some sort of callback that gets fired when a client application disconnects from the socket? We got a list of connect clients…
ferdyh
  • 1,355
  • 2
  • 11
  • 29
1
vote
2 answers

Spring Stomp @SendToUser with unauthenticated user not working

I'm trying to respond to an unauthenticated user using @SendToUser. Spring 4.1.1 I'm using a newly created Spring Boot application and the only config I have is: @Configuration @EnableWebSocketMessageBroker public class WebSocketConfig extends…
Benjamin M
  • 23,599
  • 32
  • 121
  • 201
1
vote
2 answers

How to use ExecutorSubscribableChannel

Related with the question autowire simpmessagingtemplate I am having problem the class ExecutorSubscribableChannel. I want the server to send a asynchronous message to the browser. How can I use properly ExecutorSubscribableChannel ? Example: public…
Tk421
  • 6,196
  • 6
  • 38
  • 47
1
vote
2 answers

How to specify content type produced by a handler in Spring Messaging?

I'm experimenting with Spring 4 WebSocket STOMP application. Is there a way to explicitly specify content type of the returned message produced by a handler? By default the handler below produces application/json and processed by corresponding…
Anton Moiseev
  • 2,834
  • 4
  • 24
  • 30