Spring Websocket 5.3.5
I'd like to subscribe to the system channel so I can leverage the RabbitMQ stomp /temp-queue/.
What I need is something like RabbitTemplate#sendAndReceive. But it seems Spring Webscoket drops all none recognized system channel messages
if (!getSystemSubscriptions().containsKey(destination)) {
if (logger.isDebugEnabled()) {
logger.debug("Got message on \"system\" connection with no handler: " +
accessor.getDetailedLogMessage(message.getPayload()));
}
return;
}
Since the destination is random I hope there's a chance that I can register a callback to handle all "no handler messages".
Thanks
Comment From: rstoyanchev
The StompBrokerRelayMessageHandler
facilitates creating subscriptions and receiving messages on individual user sessions. The systemSubscriptions
is mainly for internal use. In a multiple application server scenario, it allows app servers to be aware of all user sessions across all servers, and to forward user destination messages to the server(s) where user session(s) are active.
The systemSubscriptions
are exposed for configuration, and you could register an additional destination/message handler pair there, and it will likely work, but it's not something we have designed for, and I'm not sure how well it fits what you're trying to do. For something very specific to RabbitMQ, perhaps you can also just use RabbitTemplate
directly.
Comment From: spring-projects-issues
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.
Comment From: spring-projects-issues
Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.