Search code examples
jmsjms-topic

Can JMS topic strings contain spaces in them?


Can a JMS topic string contain space ? EG: "/TOPIC STRING/"
When i try to publish to this topic, it says it is an invalid destination.


Solution

  • JMS 1.1 specifications leaves "Topic String" (or Destination Address) syntax to JMS Providers. IBM MQ allows space in topic string. Please see here: https://www.ibm.com/support/knowledgecenter/SSFKSJ_9.0.0/com.ibm.mq.pro.doc/q005000_.htm