Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-1950

Clarify STOMP durable subscription header names

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.7.0
    • None
    • None

    Description

      The STOMP documentation describes the use of durable-subscription-name and does not mention durable-subscriber-name at all.

      However, the source code (VersionedStompFrameHandler.java) contains:

            String durableSubscriptionName = frame.getHeader(Stomp.Headers.Subscribe.DURABLE_SUBSCRIBER_NAME);
            if (durableSubscriptionName == null) {
               durableSubscriptionName = frame.getHeader(Stomp.Headers.Subscribe.DURABLE_SUBSCRIPTION_NAME);
            }
            if (durableSubscriptionName == null) {
               durableSubscriptionName = frame.getHeader(Stomp.Headers.Subscribe.ACTIVEMQ_DURABLE_SUBSCRIPTION_NAME);
            }
      

      In other words, if both durable-subscription-name and durable-subscriber-name are set, only the undocumented durable-subscriber-name is used.

      Why do we have durable-subscriber-name in the first place?

      If used, it should be documented. If not used, it should be removed.

      BTW, activemq.subscriptionName is also used in the code and not documented. But at least it does not interfere with the documented durable-subscription-name as it comes after...

      Attachments

        Issue Links

          Activity

            People

              jbertram Justin Bertram
              lionel.cons Lionel Cons
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: