Skip to content

user destinations docs are missing the brokerPrefix [SPR-11992] #16608

@spring-projects-issues

Description

@spring-projects-issues

zyro opened SPR-11992 and commented

in order to send messages to user destinations you need to supply the userDestinationPrefix and the brokerPrefix or else UserDestinationMessageHandler will resolve the destination but then SimpleBrokerMessageHandler will ignore it because it lacks a brokerPrefix.

at least thats the behavior i am currently seeing. taking a quick look at the portfolio sample app, it is done there just like that (userDestinationPrefix + brokerPrefix) - https://github.com/rstoyanchev/spring-websocket-portfolio/blob/master/src/main/webapp/traditional/portfolio.js.

it looks like the docs are missing that part: http://docs.spring.io/spring/docs/current/spring-framework-reference/html/websocket.html#websocket-stomp-user-destination only mentions the userDestinationPrefix

the linked github issue above is primarily for reference showing an example of the resulting confusion ;)

thanks, zyro


Affects: 4.0.5, 4.0.6

Reference URL: zyro23/grails-spring-websocket#6 (comment)

Referenced from: commits 96efafe, 70ccbbf

Metadata

Metadata

Assignees

Labels

in: messagingIssues in messaging modules (jms, messaging)in: webIssues in web modules (web, webmvc, webflux, websocket)type: documentationA documentation task

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions