Skip to content

ARTEMIS-3164 Support prefix to create temporary resources.#6378

Draft
anmol-saxena-14 wants to merge 2 commits intoapache:mainfrom
anmol-saxena-14:ARTEMIS-3164
Draft

ARTEMIS-3164 Support prefix to create temporary resources.#6378
anmol-saxena-14 wants to merge 2 commits intoapache:mainfrom
anmol-saxena-14:ARTEMIS-3164

Conversation

@anmol-saxena-14
Copy link
Copy Markdown
Contributor

Add two new acceptor URL parameters — temporaryQueuePrefix and temporaryTopicPrefix — that allow brokers to recognise destination prefixes as signals to create temporary resources.

When a STOMP client subscribes to a destination matching a configured temporary prefix, the broker:

  • Strips the prefix to derive the bare address/queue name.
  • Creates a temporary ANYCAST queue (for temporaryQueuePrefix) or a temporary MULTICAST queue (for temporaryTopicPrefix).
  • Registers the resource for automatic deletion when the client connection closes.

This mirrors the hard-coded /temp-queue/ and /temp-topic/ behaviour of ActiveMQ 5.x, easing migration of STOMP clients to Artemis.

@jbertram
Copy link
Copy Markdown
Contributor

The names of the parameters here should mimic anycastPrefix and multicastPrefix. You're currently using temporaryQueuePrefix and temporaryTopicPrefix. Instead you should use temporaryAnycastPrefix and temporaryMulticastPrefix or possibly shorten it to tempAnycastPrefix and tempMulticastPrefix.

@jbertram
Copy link
Copy Markdown
Contributor

This is a nitpick, but your commit message format should be something like <JIRA> <shortMessage> with no punctuation, e.g.:

ARTEMIS-3164 support prefix to create temporary resources

@anmol-saxena-14
Copy link
Copy Markdown
Contributor Author

This is a nitpick, but your commit message format should be something like <JIRA> <shortMessage> with no punctuation, e.g.:

ARTEMIS-3164 support prefix to create temporary resources

Thanks for pointing this out. Going forward, I’ll follow this practice.

…oraryAnycastPrefix/temporaryMulticastPrefix.
@anmol-saxena-14
Copy link
Copy Markdown
Contributor Author

Renamed the two new acceptor URL parameters introduced for temporary resource support to align with the existing anycastPrefix and multicastPrefix naming convention:

  > temporaryQueuePrefix  -> temporaryAnycastPrefix
  > temporaryTopicPrefix  -> temporaryMulticastPrefix

@jbertram jbertram changed the title ARTEMIS-3164:Support prefix to create temporary resources. ARTEMIS-3164 Support prefix to create temporary resources. Apr 28, 2026
@jbertram
Copy link
Copy Markdown
Contributor

The implementation (and testing) here looks to be specific to STOMP, but it shouldn't be. This should be implemented at the Core server so that the functionality is available to every protocol just like it is for anycastPrefix and multicastPrefix.

@jbertram jbertram marked this pull request as draft April 28, 2026 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants