You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@artemis.apache.org by "anmol-saxena-14 (via GitHub)" <gi...@apache.org> on 2026/09/08 10:02:36 UTC

Re: [PR] ARTEMIS-3164 Support prefix to create temporary resources [artemis]

anmol-saxena-14 commented on PR #6591:
URL: https://github.com/apache/artemis/pull/6591#issuecomment-5583287852

   Adds temporaryAnycastPrefix/temporaryMulticastPrefix, matching how   anycastPrefix/multicastPrefix already work. Any address/queue created   under one of these prefixes is marked temporary and cleaned up when   the connection closes.
   
   Implemented at the core session level, so it works for every protocol   (Core, AMQP, OpenWire, MQTT, STOMP) instead of being STOMP-only. Main   use case is STOMP clients migrating from ActiveMQ 5.x's hard-coded   /temp-queue/ and /temp-topic/ prefixes.
   
   Example:
   <acceptor name="stomp">tcp://0.0.0.0:61616?protocols=STOMP;temporaryAnycastPrefix=/temp-queue/;temporaryMulticastPrefix=/temp-topic/</acceptor> 
   
   Also fixes two bugs:
      - STOMP was stripping the prefix before checking it, so the temporary signal never reached the core session.  
      - Prefixed temporary addresses could be left behind after disconnect since they weren't flagged temporary early enough to be cleaned up.
   
   Verified with: TemporaryPrefixTest(new), StompTemporaryPrefixTest(new), full StompTest/StompV12Test, CoreClientTest, AmqpDurableReceiverReconnectWithMulticastPrefixTest, ServerSessionImplTest, HangConsumerTest, OrphanedConsumerDefenseTest


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org
For additional commands, e-mail: issues-help@artemis.apache.org