Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-3496

Provide configurable default for unqualified stomp reply-to header destination string

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 5.x
    • 5.6.0
    • Transport
    • None

    Description

      Sending a STOMP message with a test string ("some destination") as the "reply-to" header and ActiveMQ rejected it:
      Illegal destination name: [some destination] – ActiveMQ STOMP destinations must begin with one of: /queue/ /topic/ /temp-queue/ /temp-topic/
      The JMS specification contains:

      The JMSReplyTo header field contains a Destination supplied by a client when
      a message is sent. It is the destination where a reply to the message should be
      sent. [...]
      Messages sent with a JMSReplyTo value are typically expecting a response. A
      response may be optional, it is up to the client to decide.

      Because stomp is layered over jms, we need to default the destination type of any arbitrary string such that the intent is encoded in the destination name.

      Making use of the org.apache.activemq.command.UnresolvedDestinationTransformer from https://issues.apache.org/jira/browse/AMQ-3401 makes sense in this case.

      Attachments

        Issue Links

          Activity

            People

              gtully Gary Tully
              gtully Gary Tully
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: