Skip to content

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

Open
anmol-saxena-14 wants to merge 1 commit intoapache:mainfrom
anmol-saxena-14:ARTEMIS-3164
Open

ARTEMIS-3164:Support prefix to create temporary resources.#6378
anmol-saxena-14 wants to merge 1 commit 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

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