Skip to content

Support UNSUBSCRIBE for a durable STOMP subscription [SPR-15131] #19697

@spring-projects-issues

Description

@spring-projects-issues

Jon Kranes opened SPR-15131 and commented

For Artemis ActiveMQ, durable subscriptions in STOMP are implemented by adding the header "durable-subscription-name" in the SUBSCRIBE and UNSUBSCRIBE frames. Using current Spring it is possible to add the header when subscribing, but once the subscription is created there does not seem to be any way to unsubscribe from the durable subscription (other than manually constructing the necessary STOMP frame). To add this feature, the org.springframework.messaging.simp.stomp.DefaultStompSession.DefaultSubscription class would need to be extended to track the durable subscription name so that it could be passed back in the UNSUBSCRIBE frame when unsubscribe() is called.

Since the header name string (for example "durable-subscription-name" used by ActiveMQ-Artemis) is not a standard value this would need to be specified when the original subscription is made.


Affects: 4.3.5

Referenced from: commits 60517b2

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions