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
- depends upon
-
AMQ-3401 ActiveMQ cannot determine between Queue and Topic for Weblogic destination
- Resolved